Hi I got a question about error_messages_for helper method in rails. I read that keeping it in the view helps report validation failure. I have used as follows in checkout.rhtml:
checkout.rhtml: <div> <%=error_messages_for 'customer'%> <%form_for :customer .....%> ............ <%end%> </div> customer.rb: ......... validates_uniqueness_of :name ......... Now, if I try to give the same name twice, it should display its default message "has already been taken" but mine doesn't just the checkout page is redisplayed. Any suggestions... thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

