search for: content_identifier

Displaying 1 result from an estimated 1 matches for "content_identifier".

2006 Feb 15
0
Multiple Conditions and ActiveRecord::RecordNotFound
Hey all, It seems that if I do a Foo.find(:first, :conditions => ["identifier = ?", content_identifier]) and no records are returned then I get the exception thrown. When I add a second condition Foo.find(:first, :conditions => ["identifier = ? AND bar = ?", content_identifier, "1"]) Even though again no records are returned, the exception isn''t thrown. Any ideas?...