title: How to save devise current_user
body: <p>Trying to update current_user<br/>
  but cant save after decrementing the counter attribute and getting validation error, minimum password length is 6 characters –</p>
  
  <pre><code>current_user.crawl_counter -= 1
  current_user.save!
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable
  
    attr_accessible :email, :password, :password_confirmation, :remember_me, :crawl_counter
    PASSWORD_REGEX = /^[a-zA-Z\d]*$/
    validates :password, format: { with: PASSWORD_REGEX, :message =&gt; I18n.t('errors.messages.password_invalid') }
  end
  </code></pre>