Data dodania Pytanie
2016-12-29 15:12 Model's attributes are being failed validation when they are not passed »
Is it logical that when I don't pass attributes' values, they failed the validation of the custom validation method, even though I am not trying to up...
(0) odpowiedzi
2016-12-29 10:12 Capistrano assets:precompile , undefined $modal-delay for css »
Following is my deploy.rb # config valid only for current version of Capistrano lock '3.7.0' set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/s...
(0) odpowiedzi
2016-12-28 21:12 ActionController::Metal How to catch all exceptions to send notification email? »
I am using ActionController::Metal inherted controllers for for rails services, I want to catch all exceptions , So that I can notify myself through e...
(1) odpowiedzi
2016-12-28 11:12 Start Sidekiq automatically if it is not in running state - Rails »
I'm using redis server and sidekiq for my cron jobs but some time sidekiq kills automatically at backend. I want to restart sidekiq from my controlle...
(3) odpowiedzi
2016-12-28 02:12 ActionController::UnknownFormat Error for only format.js »
I am simply using - respond_to do |format| format.js end in my create action. Don't know why but i am getting an the UnknownFormat error. The e...
(1) odpowiedzi
2016-12-27 16:12 savon gem SOAP-ERROR: Encoding: Violation of encoding rules »
I am using savon version-2 gem for soap requests, and for authorization and few other urls I didn't face problem, but for particular endpoint I need t...
(1) odpowiedzi
2016-12-27 15:12 How to get region in place of zipcode for UAE countries using google maps API? »
When I get results then in this i am not getting region of the selected UAE area because in UAE there is no postal code/zipcode. if any way to get re...
(1) odpowiedzi
2016-12-27 13:12 Not able to place csv data in a Hash »
I have a CSV file with two columns: PPS_Id Amount 123 100 1234 150 I read data from this file and insert in a array using the code below: CSV...
(3) odpowiedzi
2016-12-26 22:12 Ruby on Rails routing error because of my root? »
I just started using Ruby on Rails and I was following this guide and I was having trouble with 4.3 Setting the Application Home Page. It has you sett...
(1) odpowiedzi
2016-12-26 05:12 Mailboxer validation »
Hi where can I edit the mailboxer gem message validation settings? For example I'd like to restrict certain types of messages to be a certain length. ...
(1) odpowiedzi
2016-12-24 11:12 prawn bounding box get remaining height »
I have been following this stack answer for content overflow, Controlling content flow with Prawn from one column to another, The problem i face is, ...
(0) odpowiedzi
2016-12-24 09:12 Rails collection_check_boxes with Main type as well it's subtypes »
Iam Working on an Event Management System, where i have HABTM between events and employees, I have created a checkbox with employees name like this, ...
(0) odpowiedzi
2016-12-24 04:12 Unit testing a polymorphic association with fixtures in rails 4 »
I need to unit test a promotions model where every campaign has a URL. There is a polymorphic association between promotions and reference_link. the r...
(1) odpowiedzi
2016-12-23 22:12 Account deleted move all posts from that account to default admin account »
first of thank you all for taking the time reading this and answering. i'm trying to find example or at least some help with the logic, what i'm try...
(1) odpowiedzi
2016-12-23 20:12 Can't install gem 'jumpstart_auth' (Screenshot posted as well) »
Screenschot of the error in my terminal I am trying to install the gem however it wont let me due to some error , tried reading the gem documentation...
(1) odpowiedzi
2016-12-23 04:12 I am having problems with my views displaying my model »
in this application, clients can have many projects and projects can only have one client. I keep getting this error when I try accessing projects/ne...
(1) odpowiedzi
2016-12-22 18:12 Address validation regex. What does this Rails validation mean? »
I have a Rails validation that reads: validates :address_line_1, format: { if: :changed?, without: /^[0-9]+$/, multiline: true, messa...
(0) odpowiedzi
2016-12-22 07:12 Ruby Nested Form »
Actually, On saving it must save, but i am getting error and tried to figure out the error where i did mistake. Kindly help me with this error. Th...
(1) odpowiedzi
2016-12-22 06:12 Assigning multiple sql result values to the same key »
I have a sql result of this form: Id Amount1 Amount2 Amount3 1 10 10 12 2 20 13 14 3 30 15 15 I am trying to st...
(2) odpowiedzi
2016-12-21 23:12 How to sort hash in rails »
I have a hash x= { "1"=>{:name=>"test1", :age=>"1"}, "5"=>{:name=>"test2", :age=>"5"}, "2"=>{:name=>"test3", :age=&gt...
(3) odpowiedzi
2016-12-21 19:12 Can't SUM DISTINCT values in Ruby on Rails »
I have 4 tables: Users, Workouts, Exercises, and Results. A "User" posts "Results" for "Exercises" which are linked to a single "Workout". But when th...
(1) odpowiedzi
2016-12-21 11:12 Splitting values in Hash »
I have a Hash in the following format: {"PPS_Id"=>["fe4d7c06-215a-48a7-966d-19ab58976548", "6e90208e-4ab2-4d44-bbaa-9a874bff095b"], "Amount"=>"...
(2) odpowiedzi
2016-12-20 14:12 Auto fill doesn't work on edit with image uploader »
I trying to create a blog with a obligatory image, but after create, when i try to edit this blog, his image appears on thmbnail but not in field and ...
(1) odpowiedzi
2016-12-20 14:12 I am not able to load layout while rendering in rails »
can anybody help me out , why i am not able to load particular layout for particular action with render :layout => "application" application.ht...
(3) odpowiedzi
2016-12-20 09:12 Will "bundle update" update all the gems on system or just the ones in Gemfile? »
I have cloned a rails app which is having Rails 5 along with some newer gems. Now I can't run it with "bundle" or "bundle install" as it is showing me...
(3) odpowiedzi
2016-12-19 12:12 Running the Rails Application with rails version 2.3.2 on Rails 5 configured environment »
I have install rails 5 and create the application successfully. But I have an application which is created on rails 2.3.2, Do I able to test the appli...
(1) odpowiedzi
2016-12-19 10:12 How to write select statement in rails controller »
I want to get only specific column details from ActiveRecord. So I did run the following code. accounts = self.accounts(:select => "id, name,accou...
(3) odpowiedzi
2016-12-19 03:12 How does "user = users(:michael)" work in Michael Hartl's Rails tutorial? »
I don't understand how: user = users(:michael) works, for instance in Listing 12.12 here: https://www.railstutorial.org/book/password_reset Does ...
(1) odpowiedzi
2016-12-18 17:12 Rails dropdown menu - assign parameter for path from the user's selection »
I want this form to appear as a dropdown list: <%= form_tag job_index_path do %> <%= select_tag "area", options_for_select(@areas.collect ...
(1) odpowiedzi
2016-12-18 08:12 Rails 3: What is the best way to update a column in a very large table »
I want to update all of a column in a table with over 2.2 million rows where the attribute is set to null. There is a Users table and a Posts table. E...
(2) odpowiedzi
2016-12-16 23:12 Rails 3 HABTM yields ActiveRecord::Associations::CollectionProxy objects »
I have a legacy Rails 3 application and I'm trying to set up a simple HABTM relationship between two models: VolunteerCircle and User. I have this s...
(1) odpowiedzi
2016-12-16 11:12 How to get Condition Group in Ransack? »
I am using advanced search in Ransack which has default AND. I have made it as OR by putting .try(:merge, m: 'or')) @search = Data.search(params[:q]....
(0) odpowiedzi
2016-12-15 21:12 Change the value of hash »
I have a array of hash response = [ {"id"=>"008CFA1213EA1479500703798", "updated_at"=>"2016-11-18T20:27:03Z"}, {"id"=>"F4521445787014794...
(0) odpowiedzi
2016-12-15 15:12 Rails: Cannot access column from a join-table in a partial »
I want to access a column from a join-table in a partial. When I access this column in a "normal" view (e.g. fakeposts#index) it is working, however i...
(1) odpowiedzi
2016-12-15 14:12 Limit Ransack drop down options »
I am using Ransack and it is working really well on our Data model. Now the issue is, in the dropdown, it shows us all the 15 option like id, name, ag...
(0) odpowiedzi