# Validates\_presence\_of message

**URL:** <https://discuss.rubyonrails.org/t/validates-presence-of-message/22313>\
**Category:** rubyonrails-talk\
**Created:** [December 28, 2007, 1:30am UTC](https://discuss.rubyonrails.org/t/validates-presence-of-message/22313 "2007-12-28T01:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcc](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tcc](https://discuss.rubyonrails.org/u/tcc)\
**Post date:** [December 28, 2007, 1:30am UTC](https://discuss.rubyonrails.org/t/validates-presence-of-message/22313/1 "2007-12-28T01:30:53Z")

</div>

validates\_presence\_of :field\_name, :message =\> "message"; the message shows up with the :field\_name message concatenated.

how can i just show just the message and not the field\_name?

Thanks

---

<div class="post-metadata">

**Author:** ![Mark\_James](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mark\_James](https://discuss.rubyonrails.org/u/Mark_James)\
**Post date:** [December 28, 2007, 9:49am UTC](https://discuss.rubyonrails.org/t/validates-presence-of-message/22313/2 "2007-12-28T09:49:25Z")

</div>

wheels wrote:

> validates\_presence\_of :field\_name, :message =\> "message"; the message shows up with the :field\_name message concatenated.
> 
> how can i just show just the message and not the field\_name?

One way is to install the custom-err-msg plugin -- [http://rubyforge.org/projects/custom-err-msg/](http://rubyforge.org/projects/custom-err-msg/) -- and prefix your message with a caret.
