search for: find_on_condit

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

2006 Feb 20
5
find(:all) vs find_all
...ind() method. I call that sort of API a kitchen sink method because it does so many different things. It really should be multiple methods. And in fact, it used to be! Look in ActiveRecord''s deprecated_finders.rb file. There are three methods in there - find_all, find_first, and find_on_conditions. While I can see an argument for dropping find_on_conditions, the other two seem quite natural, and far preferable to find(:all) and find(:first). Seems like it would simplify things, including the documentation for under what circumstances find() returns a single object vs a list,...
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