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.
straightflush (Guest)
on 2005-11-18 18: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 ?
Ramin B. (Guest)
on 2005-11-18 19: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.