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
What worked for me on Rails 4.1 and Devise 3.2.4 is in config/initializers/devise.rb:
config/initializers/devise.rb
config.secret_key = ENV['DEVISE_SECRET_KEY'] if Rails.env.production?