Skip to content

Instantly share code, notes, and snippets.

@meal
Created December 30, 2013 18:16
Show Gist options
  • Save meal/8185651 to your computer and use it in GitHub Desktop.
Save meal/8185651 to your computer and use it in GitHub Desktop.
devise rspec
/Users/meal/.rvm/gems/ruby-2.0.0-p247/gems/devise-3.2.2/lib/devise/rails/routes.rb:469:in `raise_no_secret_key': Devise.secret_key was not set. Please add the following to your Devise initializer: (RuntimeError)
config.secret_key = '075fae100c96155d95773fadfea48eac44a126d732bcaadb6abadf202358fb6513f44dd7f1b651b4dc2dbaa2598aa3aa447fc1cb0a6d4bea8b3a95be635fa6fa'
Please ensure you restarted your application after installing Devise or setting the key.
@meal
Copy link
Author

meal commented Dec 30, 2013

but

grep secret config/initializers/devise.rb
  # The secret key used by Devise. Devise uses this key to generate
  config.secret_key = '64 characters long secret token'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment