Displaying 2 results from an estimated 2 matches for "password_errors".
Did you mean:
password_error
2011 Jul 27
2
rails 3.0.9 usability problem
If there is an error with the submitted password on a form, then both
the password and password confirmation text fields should be highlighted
in red. The default seems to be to highlight only the password field.
Any suggestions on how to correct that? Because rails magically handles
the highlighting, I''m not sure how to intercept that.
--
Posted via http://www.ruby-forum.com/.
--
2007 Aug 09
3
method_missing error......need some eyes for this one
...User.find(session[:user_id])
if param_posted?(:user)
attribute = params[:attribute]
case attribute
when "email"
try_to_update @user, attribute
when "password"
if @user.correct_password?(params)
try_to_update @user, attribute
else
@user.password_errors(params)
end
end
end
#For security purposes, never fill in the password fields.
@user.clear_password
end
# Try to update the user, redirecting if successful.
def try_to_update(user, attribute)
if user.update_attributes(params[:user])
flash[:notice] = "User #{attribute}...