Skip to content

Instantly share code, notes, and snippets.

@dakoctba
Created November 28, 2013 18:57
Show Gist options
  • Save dakoctba/7696691 to your computer and use it in GitHub Desktop.
Save dakoctba/7696691 to your computer and use it in GitHub Desktop.
Como gerar secret token (rails 4)

##Como gerar secret token (rails 4)

cd app
rake secret

Copiar a chave criada para o arquivo app\config\secret_token.rb com a seguinte sintaxe:

<Aplicação>::Application.config.secret_key_base = '<chave>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment