Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rake aborted!
- Devise.secret_key was not set. Please add the following to your Devise initializer:
- config.secret_key = '-- secret key --'
- config.secret_key = 'some1234keyq23' if Rails.env == 'production'
- config.secret_key = '-- secret key --'
- 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
- $ rails generate devise:install
- config.secret_key = ENV['DEVISE_SECRET_KEY'] if Rails.env.production?
- YourAppName::Application.config.secret_token
- YourAppName::Application.config.secret_key_base
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement