diff options
author | Teng Siong Ong <siong1987@gmail.com> | 2012-08-21 20:37:58 -0700 |
---|---|---|
committer | Teng Siong Ong <siong1987@gmail.com> | 2012-08-21 20:37:58 -0700 |
commit | 0d809f6129b866d57b2b6bbe84ea5ea4770a2acd (patch) | |
tree | 773c58a67be712288af55bf5d21502e600f67d1a /railties | |
parent | d168c1f7a779c6b0322a747b7accf035fe7b3db3 (diff) | |
download | rails-0d809f6129b866d57b2b6bbe84ea5ea4770a2acd.tar.gz rails-0d809f6129b866d57b2b6bbe84ea5ea4770a2acd.tar.bz2 rails-0d809f6129b866d57b2b6bbe84ea5ea4770a2acd.zip |
remind user a good way to generate a secret code.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt index e02397aaf9..21a5de4cba 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt @@ -2,8 +2,11 @@ # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! + # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. +# You can generate a safe secret key with the command `rake secret`. + # Make sure your secret_token is kept private # if you're sharing your code publicly. <%= app_const %>.config.secret_token = '<%= app_secret %>' |