# Override message for validations

**URL:** <https://www.ruby-forum.com/t/override-message-for-validations/143425>\
**Category:** Rails\
**Created:** [July 18, 2008, 11:27am UTC](https://www.ruby-forum.com/t/override-message-for-validations/143425 "2008-07-18T11:27:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [July 18, 2008, 11:27am UTC](https://www.ruby-forum.com/t/override-message-for-validations/143425/1 "2008-07-18T11:27:35Z")

</div>

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
