search for: collection_accessor_method

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

2007 Nov 12
1
Possible bug
Bug in associations or not? def has_many if options[:through] collection_reader_method(reflection, HasManyThroughAssociation) <--- FIRST CALL collection_accessor_methods(reflection, HasManyThroughAssociation, false) <-- CALLED AGAIN INSIDE THIS METHOD else .... def collection_accessor_methods(reflection, association_proxy_class, writer = true) collection_reader_method(reflection, association_proxy_class) <-- SECOND CALL WITH SAME ARGUMENTS .......
2010 Sep 01
0
Error on update_attributes with HABTM relationship
...on'' activerecord (3.0.0) lib/active_record/associations/ association_collection.rb:157:in `transaction'' activerecord (3.0.0) lib/active_record/associations/ association_collection.rb:359:in `replace'' activerecord (3.0.0) lib/active_record/associations.rb:1524:in `block in collection_accessor_methods'' activerecord (3.0.0) lib/active_record/associations.rb:1532:in `block in collection_accessor_methods'' activerecord (3.0.0) lib/active_record/base.rb:1548:in `block in attributes='' activerecord (3.0.0) lib/active_record/base.rb:1544:in `each'' activerecord (3.0.0...
2010 Apr 27
0
undefined method 'each' in acts_as_taggable_on with rails 3 beta 3 and ruby 1.9
...t;":String from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ activerecord-3.0.0.beta3/lib/active_record/associations/ association_collection.rb:347:in `replace'' from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ activerecord-3.0.0.beta3/lib/active_record/associations.rb:1415:in `block in collection_accessor_methods'' from (irb):6 from C:/Ruby19/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta3/ lib/rails/commands/console.rb:47:in `start'' from C:/Ruby19/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta3/ lib/rails/commands/console.rb:8:in `start'' from C:/Ruby19...