[Rails] Don't clear password fields if the password is ok
Hi,
I've done a registration form with password and password_confirmation fields and the fields are being cleared if there is an error with another form input, e.g. invalid email. I find it annoying that password has to be reentered when there is a problem with another field, actually, there can be many iterations until the user gets input right. All this time having to reenter password and confirmation is clearly annoying.
So, I would like the password and confirmation fields not to be cleared if the password is ok and confirmation matches it. However, I have no idea where to start. Any ideas?
Thanks.
-- 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/lWwvK-y89gcJ.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home