Devise Secret Key was not set

前端 未结 16 1225
别那么骄傲
别那么骄傲 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:27

    I has same issue. The problem was caused by these lines in routes.rb:

    devise_for :users, :skip => [:registrations]                                                   
    as :user do
      get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'              
      put 'users' => 'devise/registrations#update', :as => 'user_registration'                      
      get '/users/sign_out' => 'devise/sessions#destroy'                                            
    end
    

    I commented them and after that i run:

    $ rails generate devise:install
    

    And it has evaluated perfectly. And after that I uncommented routes.

提交回复
热议问题