rails 3.1 partial_updates doesn't seem to work with password
Posted
by
user1306769
on Stack Overflow
See other posts from Stack Overflow
or by user1306769
Published on 2012-04-08T10:18:57Z
Indexed on
2012/04/08
17:28 UTC
Read the original article
Hit count: 149
i have a user model with a password attribute, which gets saved as password_digest. What i want to do is have the edit user page and the edit password page separated, so that the admin doesn't need to input the password everytime he needs to change something else. For this i have made an extra action / view.
My problem is that when i update the user info, i get password validation errors even though i have no password field in the form. Which leads me to the conclusion that partial_updates isn't working with the password attribute (as i have already tested in the console that it is enabled, and it is)
Is this me doing something wrong, or should i approach this differently?
© Stack Overflow or respective owner