I added Geme Devise and then followed the instructions and ran rails generate devise:install , the result was as follows:
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-3.2.4/lib/devise/rails/routes.rb:487:in `raise_no_secret_key': Devise.secret_key was not set. Please add the following to your Devise initializer: (RuntimeError) config.secret_key = 'abc123' Please ensure you restarted your application after installing Devise or setting the key.
How do I restart the application? And how and where can I set the secret key?
source share