Rails 3: How not to include column's name in a validation message without plugins ?
- by Misha Moroshko
I have the following validation:
validates_presence_of :price, :message => "my message"
and I get the following error when the price is blank:
Price my message
Is there a way not to include the column name (price) in the message ?
I tried to do:
validates_presence_of :price, :message => "^ my message"
as suggested here, but it didn't work for me. I got the following message:
Price ^ my message