Ruby on Rails: controlling the layout of an error message in ActiveRecord
Posted
by randombits
on Stack Overflow
See other posts from Stack Overflow
or by randombits
Published on 2010-04-24T17:21:38Z
Indexed on
2010/04/24
17:23 UTC
Read the original article
Hit count: 365
ruby-on-rails
|ruby
My error messages in Rails look like the following:
"Email Your email is invalid."
Why is the name of the field prefixed within the string itself? It makes the error messages look awfully odd.
Is there anyway to circumvent this behavior so that I can just see "Your email is invalid."
© Stack Overflow or respective owner