I have a problem with validations: My user model allways validates the presence of login, password and password_confirmation - it also does this if I use update_attributes to update a single attribute.
So for example updating “username” fails, because I of course do NOT provide password, password_confirmation etc. when only updating one attribute.
So: How can I make stuff like “username” updateable by update_attributes and still make sure that login, password etc have to be validaten when I
do not change a single attribute but the entire record?