title: Change user password with password confirmation
body: <p>I'm trying to update user password using password_confirmation to confirm it.</p>
  
  <p>However, I can't find a way to correctly update my password, I set password with <code>password=</code> and <code>password_confirmation=</code> but when I watch <code>changed?</code> results, it always return false.</p>
  
  <p>Any suggestion on how to solve this issue? Here is my code (change_password is called in a controller, params are correctly passed I've seen them with print):</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    acts_as_authentic
  
    belongs_to :organization
  
    # Setup accessible (or protected) attributes for your model
    attr_accessible :email, :password, :organization_id, :note, :role
  
    validates :email, :uniqueness =&gt; true
    validates :role,  :inclusion =&gt; { :in =&gt; Rails.configuration.available_roles }
  
    def change_password!(pswd)
      password = pswd
      password_confirmation = pswd
      return changed? &amp;&amp; save
    end
  
    def change_password(old_pswd, pswd, confirm_pswd)
      return false, 'Old password is incorrect' if !valid_password?(old_pswd, true)
      password = pswd
      password_confirmation = confirm_pswd
      # update_attributes([user: [password: pswd, password_confirmation: confirm_pswd]])
      print "--------- #{old_pswd} #{pswd} #{confirm_pswd} #{changed?.to_s} ------------"
      return changed? &amp;&amp; save, 'New and confirm password are not correcty'
    end
  end
  </code></pre>