Michael Kahle wrote:

> Ooo.  Another thought.  I noticed that you are doing a transaction 
> without using the "rescue" catch.  If something else goes wrong, besides 
> validation, you will never know what happened!  :)

Unless you have a pre-save model callback preventing the save for
a specific reason by returning false, that you wish to signal to
the user, such exceptions are better handled by an app-wide catcher.

-- 
Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.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 rubyonrails-talk@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to