Data dodania Pytanie
2017-09-17 21:09 rails array with multiple fields »
I am trying to create an array that has multiple internal fields so that at the time of rendering I can save the fields of each one, something like th...
(2) odpowiedzi
2017-09-17 18:09 How to set attributes with different names than a DB schema »
I am a newbie Ruby developer. I cannot figure out how to create an ActiveRecord model with different attributes names than defined in a DB schema Con...
(1) odpowiedzi
2017-09-16 23:09 Ruby Model Relationships - Three way Relationship »
I have an app that has 3 specific models; User, Country and City. The ideal relationship for each would be as follow: User has_many :countries has_...
(1) odpowiedzi
2017-09-16 10:09 How to connect RAILS with Red5 Server »
I am trying to develop an Application with Red5 Server. I did some of the steps: I set up the Red5 server into our local machine (Ubuntu) I install...
(0) odpowiedzi
2017-09-15 23:09 Ruby on rails: Basic hello world return method not allowed in Heroku production »
I am really new in rails, I am currently doing the rails tutorial in Cloud9. I did a simple endpoint to test my lovely Hello World in the default Ap...
(1) odpowiedzi
2017-09-15 13:09 Create reusable factory for code generation »
Currently I have 130 lines of code with similar Ruby code: @acquirer = create(:acquirer, name: 'OmniPay Datawire acquirer', ...
(1) odpowiedzi
2017-09-15 12:09 rake assets:precompile stuck while deployment after adding rufus-scheduler? »
I seem to have the same problem as rake assets:precompile stuck but there's no real solution except for removing rufus-scheduler again. So, I've inst...
(0) odpowiedzi
2017-09-14 15:09 stripe CardError (Cannot charge a customer that has no active card) »
def create_charge @amount = 500 customer = Stripe::Customer.create(email: params[:email]) pay = Stripe::Charge.create( :amount => para...
(0) odpowiedzi
2017-09-14 12:09 Timing issue in active admin gem »
With in admin panel when I create a new user at 11.00 am as per my local timing is shows user created at 5:47. I found one solution config.time_zone...
(1) odpowiedzi
2017-09-12 23:09 Error In Show And Edit Articles »
I have an error when I press show articles and when I press update articles when editing the article. I will show you the image and my code if you thi...
(1) odpowiedzi
2017-09-12 18:09 Error Handling - Email LDAP - Rails »
I'm beginner in Ruby on Rails and I need help In my project, I need to catch on LDAP the e-mail of user. class User < ActiveRecord::Base # Incl...
(1) odpowiedzi
2017-09-12 09:09 Implement array and iterate »
I have this Ruby code that I want to use: if args[:remove_existing_trxs] == 'true' Acquirer.delete_all Company.delete_all Currency.delete...
(2) odpowiedzi
2017-09-11 15:09 401 Unauthorized error in rails api-only app when using React »
I'm trying to use a rails api-ony app as back-end and React js as front-end. I'm using axios to send/ receive requests. Initially I wasn't able to eve...
(1) odpowiedzi
2017-09-11 13:09 Favourite Model #No route match {:action=>"favorite", :controller=>"microposts", :id=>nil, :type=>"favorite"} missing required keys: [:id] »
I got this error ActionController::UrlGenerationError in StaticPages#home No route matches {:action=>"favorite", :controller=>"microposts", :i...
(1) odpowiedzi
2017-09-11 09:09 Pass parameter to Validation - Rails 3 »
We are currently valid different sections via the following code: on_boarding_form.rb def valid? @sections.all? {|section| section.valid?} e...
(0) odpowiedzi
2017-09-09 00:09 Rails Cancan NameError - uninitialized constan »
Hi, I need your help with cancan. I have this controler: class RegistrationsController < Devise::RegistrationsController I needed because I ha...
(1) odpowiedzi
2017-09-07 20:09 Check if user has restaurant 48hours after sign up »
I have some trouble to check if my user have created a restaurant 48 hours after signed_up ( the objective is to send an Email reminder). I tried di...
(1) odpowiedzi
2017-09-07 13:09 Tiff images are not rendered when using PDFKit »
I am using PDFKit to generate a PDF file with Tiff images kit = PDFKit.new("<img src='test.tif'") kit.to_file("hello.pdf") But in the output PDF...
(1) odpowiedzi
2017-09-06 22:09 How to modify the response of as_json in ruby on rails? »
I have a model called Event, which in turn has_one association with EventType event = Event.last event.as_json(include: {event_type: {only: :name}},...
(2) odpowiedzi
2017-09-06 17:09 How convert 'link_to' to Absolute in Rails »
I've a problem in my program, I add in DB a link, for example, "www.google.com" and when I clic in the link I'm redirected to localhost:3000/www.googl...
(3) odpowiedzi
2017-09-06 09:09 Replace the Role_requirement plugin with a gem and fix the issue with class_inheritable_array »
We Have a project working in Rails 3.1.16 and ruby 1.9.3. We are planning to upgrade the rails version to 3.2. The issue we have encountered is when ...
(0) odpowiedzi
2017-09-05 17:09 I18n::ArgumentError in Admin/main#index »
I am newbie to ruby devlopment. I got this error: Showing /home/User/.gem/ruby/1.9.3/gems/admin-0.0.5/app/views/admin/main/index.html.haml where ...
(1) odpowiedzi
2017-09-05 14:09 Devise after user login create action with table relationship »
After User login with devise_token_auth then create operation_system name with "android" or "ios" so what should I do? Here is my code: class CreateO...
(0) odpowiedzi
2017-09-05 12:09 How can I overwrite will_paginate page_entries_info method? »
I have a problem with the display of the text messages from page_entries_info method. I want to change text in that. Any Idea? ...
(0) odpowiedzi
2017-09-04 22:09 Resque workers dying silently »
I'm having issues with the workers that I have set up for a website. Here's Some background of the app: It runs on rails 3.0.2, using mongodb, redis g...
(1) odpowiedzi
2017-09-04 16:09 Rails customize json generating using eagerloading rails »
I have a model User and another Images and relationship in between both of these as: User has_many :images Image belongs_to :user Now I'm writing ...
(0) odpowiedzi
2017-09-02 07:09 BCrypt::Errors::InvalidHash (invalid hash) Devise 1.5.4 Rails 2.2.5 »
we are using the following in devise.rb config.encryptor = :bcrypt We wanted to change this to config.encryptor = :authlogic_sha512 Also writte...
(1) odpowiedzi
2017-09-01 11:09 Rails variable data is changing »
I have two tables that has many to many association students projects connected through the table student_projects student = Student.find(1) old_p...
(2) odpowiedzi
2017-08-31 14:08 Is there any way to implement find_in_batches 'finish' option in Rails 3.2? »
find_in_batches in Rails 3.2 doesn't support finish/end/end_at option Need any work around. Thanks ...
(0) odpowiedzi
2017-08-31 13:08 Capybara::Poltergeist::MouseEventFailed after Haml update (4.0.7 => 5.0.2) [RAILS] »
Hi we are currently updating our HAML file from version 4.0.7 to 5.0.2. After the update a lot of cucumber tests break saying; Firing a click at co-...
(0) odpowiedzi
2017-08-31 12:08 undefined method `merge' for :name:Symbol »
I am trying to use a select box in my form. when I try it this way <%= s_form.select :experience_category_id, ExperienceCategory.all, :name,:id%&...
(3) odpowiedzi
2017-08-30 23:08 Using Zeus for Rails auto-reloading, how do I include classes in extra subfolders? »
I'm working on a large Rails 3.2 project. I use Zeus (and sometimes Guard) to auto reload rails so the tests run faster. However, when running certain...
(0) odpowiedzi
2017-08-30 04:08 NameError in ArticlesController#create undefined local variable or method `article_params' for #<ArticlesController:Did you mean? article_path »
I am getting this error when I create my articles: error: NameError in ArticlesController#create undefined local variable or method `article_params' ...
(2) odpowiedzi
2017-08-30 02:08 syntax error, unexpected '=', expecting keyword_end flash [:notice] = "Article was submitted succsefully" »
I have this error which is not letting me look at articles that are created this is the error syntax error, unexpected '=', expecting keyword_end fl...
(2) odpowiedzi
2017-08-29 20:08 sending Sha256 hash as a URL param as signature for Rails request data »
I've noticed that when i send a url like this: http://localhost:3000/register/register_user/?sig=zaQ/876CwJMEEmrJqAOYHyEKBXy2s03NDmk+3FsXPr4= what ...
(1) odpowiedzi