diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2013-12-16 22:08:58 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2013-12-17 08:39:07 -0800 |
commit | 2003d0409e357c7be8a9380f479d8094efc47d31 (patch) | |
tree | 3cfed40e2b69fbed787472c0ba1d4280a7c54e0e /guides/source/upgrading_ruby_on_rails.md | |
parent | 5d77edf0cf1ed653ed3f7729d77eeb8de219d0b3 (diff) | |
download | rails-2003d0409e357c7be8a9380f479d8094efc47d31.tar.gz rails-2003d0409e357c7be8a9380f479d8094efc47d31.tar.bz2 rails-2003d0409e357c7be8a9380f479d8094efc47d31.zip |
Some assorted fixes for the 4.1 release notes:
* Added release notes for secrets.yml and mentioned it in the highlights
* Added release notes for Mailer previews and mentioned it in the highlights
* Added release notes for Module#concerning
* Removed mention for AV extraction from the highlights
* Rearranged the major features to put highlighted features first
* Various improvements and typo 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 ca5623bf73..a7946b2120 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. |