> def create_memo > #does stuff and if there is an error not in validations > ... > raise ActiveRecord::Rollback, 'Memo was NOT created. Payment exceeds > balance due' > ... > end > Steve
I am guessing that you are planning on using later on the message that you are raising. Why not just add the error to your memo object errors and then check in your controller if your memo.errors is empty or not? pepe -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.