in testing my app I just use the validations validates_presence_of :first_name, :last_name, :email validates_presence_of :academy, :message => "You must select an Academy" validates_presence_of :role, :message => "You must select a role"
standard error_messages are fine for most of my fields , resulting in : 5 errors prohibited this data from being saved There were problems with the following fields: # Last name can't be blank # Email can't be blank # First name can't be blank but 2 messages are a little bit confusing : # Role You must select a role # Academy You must select an Academy the model names are embedded into the error message... how can I suppress them and get only the message.... # You must select a role # You must select an Academy thanks fyh erwin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

