Forum: Ruby on Rails validates_X errors not showing up

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 straightflush (Guest)
on 2005-11-18 17:10
(Received via mailing list)
How do i access the errors produced by validates_X_of  ?

do i need to have the ids of my fields be certain names ?
B7c24a7df391a1c318a90974537afc43?d=identicon&s=25 Ramin Bozorg (i8ramin)
on 2005-11-18 18:16
(Received via mailing list)
The easiest way to show them is by calling
<%= error_messages_for 'object-name' %>

Not sure about the syntax if you wanna customize the error messages.
This topic is locked and can not be replied to.