Hi, I have a Users model that has a bunch of verifications such as email being unique and password being present etc.. In my controller I want to do @user.save and in case this failed due to the email not being unique (The user being created is already present in the db), I want to send an appropriate notice and redirect to a certain page. Save only returns false when a certain validation fails, but I need to be able to tell through code which validation it failed. I was expecting it to throw certain types of exceptions based on what basic validation failed but this is not how it behaves. Any ideas?
Thanks Samir -- 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.

