Tarscher | 18 Jul 11:23

override message for validations


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
-~----------~----~----~----~------~----~------~--~---


Gmane