search for: m003721

Displaying 1 result from an estimated 1 matches for "m003721".

Did you mean: 1003721
2010 Oct 03
7
Rails 3, Validates, Custom Message
...question is, in Rails 3, how to you give a simple custom message? Do I need to go through and set up a custom validation class for each validation, just to show a different message? I''ve looked at: http://www.railsapi.com/doc/rails-v3.0.0/classes/ActiveModel/Validations/ClassMethods.html#M003721 but it seems to show that a custom class would need to be set up for each attribute of my models? I''m sure there''s a shortcut, but have yet to find it. Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Grou...