Wes Gamble
2006-Jul-12 20:47 UTC
[Rails] What is the best way to override an _entire_ AR::Errors msg?
All, I have an error message that I would like to be more readable, since my column name doesn''t look good. I want to change the output of validates_presence_of :eSubject from Esubject can''t be blank to Subject can''t be blank Do I have to go through aliasing the whole eSubject column in the AR class or is there an easier way to just modify the "field part" of the autogenerated message? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
Maybe Matching Threads
- validate method not getting called?
- Best Practices: Splitting the "view model" from AR model
- Wrap error_messages_for() call when no instance var present
- Validation not executing on save - need help debugging
- Theoretical: Should models be subclasses of AR or mix it in?