Ruby on Rails
Custom Error Message

Active Record validation enhancement. This plugin gives you the option to not have your custom validation error message prefixed with the attribute name. Ordinarily, if you have, say:

validates_acceptance_of :accepted_terms, :message => 'Please accept the terms of service'

You’ll get the following error message:

Accepted terms Please accept the terms of service

This plugin allows you to omit the attribute name for specific messages. All you have to do is begin the message with a ‘^’ character. Example:

validates_acceptance_of :accepted_terms, :message => '^Please accept the terms of service'

Download: http://rubyforge.org/projects/custom-err-msg/

svn://rubyforge.org/var/svn/custom-err-msg

See also Plugins