Hi Pedro,
Pedro Cardoso wrote:
> I would like to use a verify, but I want to raise an exception
> if the verification is not met.
Not sure if this is what you''re looking for, but you could redirect_to
a
method that raises it.
http://www.troubleshooters.com/codecorn/ruby/basictutorial.htm#_Exceptions
hth,
Bill
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---