18 Jul 11:23
override message for validations
From: Tarscher <tarscher@...>
Subject: override message for validations
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-18 09:27:00 GMT
Subject: override message for validations
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-18 09:27:00 GMT
Hi all, Is it possible to override the default rails messages (:message => ) for validations (validates_presence_of :first_name, :last_name, :email, :message => "you moron!") application wide without changing the rails code itself. I need to translate it but want to avoid putting the translation next to each validates_* I prefer not to do to change rails code since I feel it hardens upgrading. Regards, Stijn --~--~---------~--~----~------------~-------~--~----~ 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@... To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
RSS Feed