Skip to content

Instantly share code, notes, and snippets.

@Kievbuy
Created November 25, 2018 19:41
Show Gist options
  • Select an option

  • Save Kievbuy/5f28e7d88ddc1d169cd4821292dabf45 to your computer and use it in GitHub Desktop.

Select an option

Save Kievbuy/5f28e7d88ddc1d169cd4821292dabf45 to your computer and use it in GitHub Desktop.
Run **rake secret** to generate a new token. Now create a new **file config/initializers/secret_token.rb** and add the following: **MyApp::Application.config.secret_key_base = '<token>'** Replace <token> with the one you just generated and replace
Run rake secret to generate a new token.
Now create a new file config/initializers/secret_token.rb and add the following:
MyApp::Application.config.secret_key_base = '<token>'
Replace <token> with the one you just generated and replace MyApp with the actual module name of your app. You can find the module name of your app at the top of config/environments/development.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment