RailsCasts Pro episodes are now free!

Learn more or hide this

Uri Sharf's Profile

GitHub User: usharf

Site: https://plus.google.com/104936988539783595605/posts

Comments by Uri Sharf

Avatar

You can also use

ruby
validates password, :confirmation => true

a :password_confirmation accessor will be automatically created and available in the view, though validation will not be triggered if password_confirmation is nil.