diff options
author | Jon Atack <jonnyatack@gmail.com> | 2016-08-19 18:47:47 +0200 |
---|---|---|
committer | Jon Atack <jonnyatack@gmail.com> | 2016-08-19 22:24:54 +0200 |
commit | b4c92be4711cdaa5ba8f49bd46a7962c12d78633 (patch) | |
tree | 96fc47aaf9236b7f6acd137183cf11c51866e951 /guides/source/upgrading_ruby_on_rails.md | |
parent | 6107a40c0e4d05614493bddf33d5ae8d9ce8a8d2 (diff) | |
download | rails-b4c92be4711cdaa5ba8f49bd46a7962c12d78633.tar.gz rails-b4c92be4711cdaa5ba8f49bd46a7962c12d78633.tar.bz2 rails-b4c92be4711cdaa5ba8f49bd46a7962c12d78633.zip |
Consistent examples and template for assets#precompile
Listening to a few developers today discussing their troubles in understanding how to use the asset pipeline, it turns out that the precompile examples in the guides and assets.rb template have over time become a bit inconsistent.
This PR makes the examples consistent in code style, spacing, and asset names, removes the old 'swfObject.js' example, and in a couple of places wraps lines at 80 characters including in the assets.rb template.
Re-add spaces inside array parentheses.
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 2ac5a2188b..8246f3e08a 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -1424,7 +1424,7 @@ config.assets.digest = true # config.assets.manifest = YOUR_PATH # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) -# config.assets.precompile += %w( search.js ) +# config.assets.precompile += %w( admin.js admin.css ) # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true |