Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. rake aborted!
  2. Devise.secret_key was not set. Please add the following to your Devise initializer:
  3. config.secret_key = '-- secret key --'
  4.  
  5. config.secret_key = 'some1234keyq23' if Rails.env == 'production'
  6.  
  7. config.secret_key = '-- secret key --'
  8.  
  9. devise_for :users, :skip => [:registrations]
  10. as :user do
  11. get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'
  12. put 'users' => 'devise/registrations#update', :as => 'user_registration'
  13. get '/users/sign_out' => 'devise/sessions#destroy'
  14. end
  15.  
  16. $ rails generate devise:install
  17.  
  18. config.secret_key = ENV['DEVISE_SECRET_KEY'] if Rails.env.production?
  19.  
  20. YourAppName::Application.config.secret_token
  21.  
  22. YourAppName::Application.config.secret_key_base
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement