Devise, generate hash password
04/01/2016
Ruby on Rails 4
The question is that you are using devise and you want to get hash password from raw password. Here is your solution:
password = 'the secret password'
new_hashed_password = User.new(:password => password).encrypted_password