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
-~----------~----~----~----~------~----~------~--~---