> 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 == [])
  return val
end

Or something like that. I wrote it in gmail so it isn't tested.

-- 
Kevin Clark
http://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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---

Reply via email to