Devise: New Errors (Encrytable)

前端 未结 1 673
独厮守ぢ
独厮守ぢ 2021-02-19 23:10

I hadn\'t touched my code in a week, but when I bundled, then attempted to run my webserver I now get the following errors, which are leaving me dead in the water. Including th

相关标签:
1条回答
  • 2021-02-19 23:31

    I just had the same problem.

    As written on the wiki of devise, you have to add this line in your Gemfile:

    gem 'devise-encryptable'

    From the wiki:

    If you're using encryptable on your models, you will now have to include devise-encryptable on your gemfile.

    https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.1

    Regarding the warnings:

    Remove the following from your devise.rb:

    # Automatically apply schema changes in tableless databases
    config.apply_schema = false
    
    # If true, uses the password salt as remember token. This should be turned
    # to false if you are not using database authenticatable.
    config.use_salt_as_remember_token = true
    
    0 讨论(0)
提交回复
热议问题