views:

91

answers:

1

If I have the following validation:

validates_inclusion_of :dob, :in => Date.new(1900)..Time.now.years_ago(18).to_date, :message => "You must be 18 or older to register"

The actual message on the site that shows up is:

"Dob You must be 18 or older to register"

Is there any way not to include the column name at the beginning of the message?

Thank you

Tom

+3  A: 

Yes. I use the custom-err-msg plugin. It's pretty easy to get up and running, just read the README.

Andy Gaskell
no magic built in :dont_include_field_name flag or anything, eh? :) Thanks for the plugin suggestion - I'll check it out. +1
cakeforcerberus
Very easy to set up and works perfectly. Thanks again!
cakeforcerberus