Now it doesn't submit with blank password. But it doesn't display the errors... Do you know why?
On 11 ago, 16:55, jhaagmans <[email protected]> wrote: > According to the API, you will need to do seperate validations. This > is due to the fact that if there's a comma after name, it expects an > option. :password is not an option. > > So: > class User < ActiveRecord::Base > validates_presence_of :name > validates_presence_of :password > end > > Hope this helps! If it doesn't, please check back. > > Kind regards, > Jaap Haagmans > w.http://www.relywebsolutions.nl --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

