# override message for validations

**URL:** <https://discuss.rubyonrails.org/t/override-message-for-validations/32029>\
**Category:** rubyonrails-talk\
**Created:** [July 18, 2008, 9:27am UTC](https://discuss.rubyonrails.org/t/override-message-for-validations/32029 "2008-07-18T09:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarscher1](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@Tarscher1](https://discuss.rubyonrails.org/u/Tarscher1)\
**Post date:** [July 18, 2008, 9:27am UTC](https://discuss.rubyonrails.org/t/override-message-for-validations/32029/1 "2008-07-18T09:27:00Z")

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