Hi all, Just getting familiar with rails and am performing some checks in a method within a controller. If the checks fail, I would like to indicate to the user a custom error message and stop the update (the method is updating a record in the model). What are best practices to do this? I understand that for form validation I should be putting validation checks in the model however this is different in that the check is not against any one field in the model. Should I be raising an exception? Ideally, I would like to indicate the error to the user in a similar fashion as when a form validation fails. Thanks! --- I apologize if this is a double post but I originally posted over 2 hrs ago, and it has yet to appear. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---