> > You're rescuing the exception but then you're re-raising it so your > render call never happens. Also a more usual way is to call save and > test the return value of that rather than call save! and rescue the > exception
Thanks fred.But i want transaction(which need save!) to let them all either to be saved or not.If i rescue the exception and not re-raising it,is it right to handle exception in this way? -- 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.

