Displaying 1 result from an estimated 1 matches for "validate_pass".
2006 Mar 29
6
Simply Getting Post Params
...is an associated add_user action in the login_controller that
passes the params to User.new() when a new user is created.
My question is that I want the password to be verified and entered twice
to ensure the user types the correct password. To do this I thought of
adding a password_field("validate_pass","pass") to the form in the view.
All the other form helpers are mapped to the "user" object. (i.e.
text_field("user", "username"). I then wanted to add a validate method
in the User model to check that self.password == this validated
password. Howev...