On 30.8.2006, at 8.43, Kevin Clark wrote:
You'd then also have to add a find! and document this in both the dynamic finders section of the docs as well as the find! method.def find!(*args) val = find(*args) raise blah if val.nil? or (val == [])
val.blank?, man ;-)
return val end Or something like that. I wrote it in gmail so it isn't tested.-- Kevin Clarkhttp://glu.ttono.us --~--~---------~--~----~------------~-------~--~----~You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.To post to this group, send email to [email protected]To unsubscribe from this group, send email to rubyonrails-core- [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/ group/rubyonrails-core-~----------~----~----~----~------~----~------~--~---
-- Jarkko Laine http://jlaine.net http://odesign.fi
smime.p7s
Description: S/MIME cryptographic signature
