No release in over 3 years
Low commit activity in last 3 years
This plugin gives you the option to not have your custom validation error message prefixed with the attribute name
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Custom Error Message

This plugin gives you the option to not have your custom validation error message prefixed with the attribute name.

Rails 3 and Ruby 1.9

Custom Error Message is Rails 3 and Ruby 1.9 compatible

Usage

Sometimes generated error messages don't make sense.

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

This generates the error message:

Accepted terms Please accept the terms of service

This plugin uses the carat (^) to omit the name of the attribute from error messages:

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

This now generates:

Please accept the terms of service

CREDITS

This plugin was originally written by David Easley (easleydp@gmail.com)