diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-12-17 08:56:27 -0800 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-12-17 08:56:27 -0800 |
commit | bb0bc7a26f63250df00016024650caa669fc4df0 (patch) | |
tree | 8e128fda7fbcc864ed0139d362e90590c8dbda38 /guides/source/upgrading_ruby_on_rails.md | |
parent | ae196e85ee7169700afac2eecdc276bc06b10b8d (diff) | |
parent | 2003d0409e357c7be8a9380f479d8094efc47d31 (diff) | |
download | rails-bb0bc7a26f63250df00016024650caa669fc4df0.tar.gz rails-bb0bc7a26f63250df00016024650caa669fc4df0.tar.bz2 rails-bb0bc7a26f63250df00016024650caa669fc4df0.zip |
Merge pull request #13346 from chancancode/release_notes_etc
Release notes fixes [ci skip]
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 1c233b4d82..b838874e2b 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -39,6 +39,33 @@ NOTE: User defined rake tasks will run in the `development` environment by default. If you want them to run in other environments consult the [Spring README](https://github.com/jonleighton/spring#rake). +### `config/secrets.yml` + +If you want to use the new `secrets.yml` convention to store your application's +secrets, you need to: + +1. Create a `secrets.yml` file in your `config` folder with the following content: + + ```yaml + development: + secret_key_base: + + test: + secret_key_base: + + production: + secret_key_base: + ``` + +2. Copy the existing `secret_key_base` from the `secret_token.rb` initializer to + `secrets.yml` under the `production` section. + +3. Remove the `secret_token.rb` initializer. + +4. Use `rake secret` to generate new keys for the `development` and `test` sections. + +5. Restart your server. + ### Changes in JSON handling The are a few major changes related to JSON handling in Rails 4.1. |