title: NoMethodError: undefined method `encrypted_password devise gem
body: <pre><code>this is my user model:
  
  
  class User &lt; Account
         devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable
  
  
            attr_accessible :email, :password, :password_confirmation, :remember_me
  
         devise :database_authenticatable,
         :ga_otp_authenticatable,
      :yk_otp_authenticatable,
      :registerable,
      :confirmable,
      :recoverable,
      :trackable,
      :validatable,
      :lockable,
      :timeoutable
  
    # Setup accessible (or protected) attributes for your model
    attr_accessible :password, :password_confirmation, :remember_me, :time_zone, :require_ga_otp, :require_yk_otp, :full_name, :address
  
    attr_accessor :captcha,
      :skip_captcha,
      :new_password,
      :new_password_confirmation,
      :current_password
  
    before_validation :generate_name,
      :on =&gt; :create
  
    has_many :trade_orders,
      :dependent =&gt; :destroy
  
    has_many :purchase_trades,
      :class_name =&gt; "Trade",
      :foreign_key =&gt; "buyer_id"
  
    has_many :sale_trades,
      :class_name =&gt; "Trade",
      :foreign_key =&gt; "seller_id"
  
    has_many :invoices,
      :dependent =&gt; :destroy
  
    has_many :yubikeys,
      :dependent =&gt; :destroy
  
    has_many :bank_accounts,
      :dependent =&gt; :destroy
  
    has_many :tickets,
      :dependent =&gt; :destroy
  
    #has_many :tickets,
    #  :dependent =&gt; :destroy
  
    validates :email,
      :uniqueness =&gt; true,
      :presence =&gt; true
  
    validate :captcha do
      if captcha.nil? and new_record?
        unless skip_captcha
          errors[:captcha] &lt;&lt; I18n.t("errors.answer_incorrect")
        end
      end
    end
  
    def captcha_checked!
      self.captcha = true
    end
  
    def bitcoin_address
      super or (generate_new_address &amp;&amp; super)
    end
  
    def qr_code
      if @qrcode.nil?
        @qrcode = RQRCode::QRCode.new(bitcoin_address, :size =&gt; 6)
      end
      @qrcode
    end
  
    def confirm!
      super
      UserMailer.registration_confirmation(self).deliver
    end
  
    protected
  
    def self.find_for_database_authentication(warden_conditions)
      conditions = warden_conditions.dup
      name = conditions.delete(:name)
      where(conditions).where(["name = :value OR email = :value", { :value =&gt; name }]).first
    end
  
    def generate_name
      self.name = "BF-U#{"%06d" % (rand * 10 ** 6).to_i}"
    end
  end
  </code></pre>
  
  <p>This is my account model:</p>
  
  <pre><code>     class Account &lt; ActiveRecord::Base
    has_many :account_operations
  
    has_many :used_currencies,
      :dependent =&gt; :destroy
  
    belongs_to :parent,
      :class_name =&gt; 'Account'
  
    validates :name,
      :presence =&gt; true,
      :uniqueness =&gt; true
  
    # BigDecimal returned here
    def balance(currency, options = {} )
      account_operations.with_currency(currency).with_confirmations(options[:unconfirmed]).with_processed_active_deposits_only.map(&amp;:amount).sum.round(5).abs
    end
  
    # Generates a new receiving address if it hasn't already been refreshed during the last hour
    def generate_new_address
      unless last_address_refresh &amp;&amp; last_address_refresh &gt; DateTime.now.advance(:hours =&gt; -1)
        self.last_address_refresh = DateTime.now
        self.bitcoin_address = Bitcoin::Client.instance.get_new_address(id.to_s)
        save
      end
    end
  
    def max_withdraw_for(currency)
      Transfer.round_amount(self.balance(currency), currency)
    end
  
    def self.storage_account_for(currency)
      account_name = "storage_for_#{currency.to_s.downcase}"
      account = find_by_name(account_name)
  
      if account
        account
      else
        Account.create! do |a|
          a.name = account_name
        end
      end
    end
  end
  </code></pre>
  
  <p>My problem is I am trying to input the password but it is not accepting password field. It is giving error that password cant be blank.</p>
  
  <p>I have tried to create user manually. here it is giving error undefined method encrypted password.</p>
  
  <p>how to solve this problem?</p>