Hi, I am puzzlin for quite a while on this. I use find_by methods to retieve AR objects. In some cases find_by will return nil if there is no match. However I would like to have find_by return a default object instead.
Is there a way to overload that particular find_by method? Or whats the best way to implement it. Thanks Jens -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

