[Rails] How do you use :message with validation?

Carl-Johan Kihlbom
Thu, 20 Jul 2006 09:34:05 -0000

Check the API for ActiveRecord::Errors and error_messages_for.

On 7/20/06, Ben Lisbakken <lisbakke@gmail.com>
wrote:
> If I do validates_uniqueness_of :name, :message => "It''s
not
> uniqueeee!!!"
>
> then how do I have it display that message when the check fails?
>
> -Ben Lisbakken
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>