diff options
author | Chulki Lee <chulki.lee@gmail.com> | 2014-01-14 09:57:40 -0800 |
---|---|---|
committer | Chulki Lee <chulki.lee@gmail.com> | 2014-01-14 11:13:42 -0800 |
commit | 1ab6c656d6b1fc61e63490e5191ed054d1a06a91 (patch) | |
tree | b07e6cc314bb3a0e31613683ce54ef148e3f094d /guides/source/upgrading_ruby_on_rails.md | |
parent | b23330745bddd6729f95fb8487e3ec4857e4bb58 (diff) | |
download | rails-1ab6c656d6b1fc61e63490e5191ed054d1a06a91.tar.gz rails-1ab6c656d6b1fc61e63490e5191ed054d1a06a91.tar.bz2 rails-1ab6c656d6b1fc61e63490e5191ed054d1a06a91.zip |
Use single quotes in generated files
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 72a4bb4c2d..ab8cabe48d 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -130,7 +130,7 @@ Rails-specific features. For example: ```ruby class FooBar def as_json(options = nil) - { foo: "bar" } + { foo: 'bar' } end end @@ -503,13 +503,13 @@ get 'こんにちは', controller: 'welcome', action: 'index' ```ruby # Rails 3.x - match "/" => "root#index" + match '/' => 'root#index' # becomes - match "/" => "root#index", via: :get + match '/' => 'root#index', via: :get # or - get "/" => "root#index" + get '/' => 'root#index' ``` * Rails 4.0 has removed `ActionDispatch::BestStandardsSupport` middleware, `<!DOCTYPE html>` already triggers standards mode per http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx and ChromeFrame header has been moved to `config.action_dispatch.default_headers`. @@ -705,7 +705,7 @@ You can help test performance with these additions to your test environment: ```ruby # Configure static asset server for tests with Cache-Control for performance config.serve_static_assets = true -config.static_cache_control = "public, max-age=3600" +config.static_cache_control = 'public, max-age=3600' ``` ### config/initializers/wrap_parameters.rb |