search for: deprecated_remove_association_rel

Displaying 2 results from an estimated 2 matches for "deprecated_remove_association_rel".

2005 Nov 04
0
habtm's collection_remove deprecated
...9;m new to Rails and I have a question about the collection_remove method added to models with has_and_belongs_to_many associations. This function is not listed in the documentation, but is still there in Rails 0.14. I noticed this in the source for has_and_belongs_to_many: # deprecated api . . . deprecated_remove_association_relation(association_name) What does it mean for a method to be deprecated? Will future versions of Rails drop it? In that case, should I replace it with some manual functionality (collection.delete does only half the job as it deletes the corresponding row in the join table but doesn''t remov...
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde