Devise Secret Key was not set

前端 未结 16 1265
别那么骄傲
别那么骄傲 2020-11-27 14:53

I am developing a Rails 4 app using the Active Admin gem for the administration back end. Active Admin in turn uses Devise for user authentication. Now, when I try to deploy

16条回答
  •  被撕碎了的回忆
    2020-11-27 15:26

    Ran into the same trouble with Rails 5.2.0 and Devise 4.4.1

    Drop the following into /config/initializers/devise.rb

    config.secret_key = Rails.application.credentials.secret_key_base
    

提交回复
热议问题