title: Ruby on Rails update_attibutes not working
body: <p>I am trying to set an user as admin, the method is:</p>
  
  <pre><code>def set_user_admin
      if admin_true? == true
        user = User.find(params[:format])
        if user == nil
          redirect_to managements_path
        else
          user.update_attributes(admin: true, assistant: true, 
            businessman: true)
          redirect_to managements_path
          flash[:notice] = "The user #{user.name} is an admin user now"
        end
      else
      end
    end
  </code></pre>
  
  <p>The method run just fine, but is not saving in data base. Some validation is stopping the action. Then I run the command in terminal:</p>
  
  <pre><code>u = User.find_by_id(3)
  u.update_attributes(admin: true)
  (0.1ms)  rollback transaction
  =&gt; false
  u.errors
  @messages={:password=&gt;["Choose a password", "Your password must be at least 4 characters
  "], :password_confirmation=&gt;["You must confirm your password
  "]}
  </code></pre>
  
  <p>So, I can't update user as admin because the password validations are called in the action.</p>
  
  <p>Does anyone know why password and update_password validation is being called in update_attributes? I do not understand why</p>