search for: assign_attributes

Displaying 3 results from an estimated 3 matches for "assign_attributes".

2013 Feb 10
0
Nested attributes doesnt get updated
...9; activerecord (3.1.3) lib/active_record/nested_attributes.rb:399:in `assign_nested_attributes_for_collection_association'' activerecord (3.1.3) lib/active_record/nested_attributes.rb:287:in `w_a_details_attributes='' activerecord (3.1.3) lib/active_record/base.rb:1751:in `block in assign_attributes'' activerecord (3.1.3) lib/active_record/base.rb:1747:in `each'' activerecord (3.1.3) lib/active_record/base.rb:1747:in `assign_attributes'' activerecord (3.1.3) lib/active_record/persistence.rb:162:in `block in update_attributes'' activerecord (3.1.3) lib/active_rec...
2013 May 20
0
db connection returns stale values
...ost-update values, confirming the update was written successfully to the database). A call to ActiveRecord::Base.establish_connection fixes the problem for the ''stale'' connection. controller: def update #@default_model.update_attributes(params[@model_name]) @default_model.assign_attributes(params[@model_name]) Graph::Helper.save(@default_model) #custom save() for legacy version control debugger @default_model.some_association.updated_field #still shows pre-update value @default_model.reload @default_model.some_association.updated_field #still shows pre-update val...
2011 Nov 07
2
Problem with Rails3.1.1 in mass_assignment_authorizer
...assignment_authorizer'' /home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activemodel-3.1.1/ lib/active_model/mass_assignment_security.rb:209:in `sanitize_for_mass_assignment'' /home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/ lib/active_record/base.rb:1744:in `assign_attributes'' /home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/ lib/active_record/base.rb:1567:in `initialize'' /home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/ lib/active_record/reflection.rb:190:in `new'' Everything was working on Friday la...