diff options
author | Limon Lin <limon7@gmail.com> | 2013-03-15 13:14:26 +0800 |
---|---|---|
committer | Limon Lin <limon7@gmail.com> | 2013-03-15 13:14:26 +0800 |
commit | 6e0aafbba2300e78ecb8bf956dd5e90b6acf6b94 (patch) | |
tree | 629d77ccf2d32535e9891e5b4175590e1c4010d6 | |
parent | c9f75463bff73930210097fbe7ed9a029f5fce8d (diff) | |
download | rails-6e0aafbba2300e78ecb8bf956dd5e90b6acf6b94.tar.gz rails-6e0aafbba2300e78ecb8bf956dd5e90b6acf6b94.tar.bz2 rails-6e0aafbba2300e78ecb8bf956dd5e90b6acf6b94.zip |
Should be a symbol not string to defer the choice of layout.
[ci skip]
-rw-r--r-- | guides/source/layouts_and_rendering.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index bfd1a7c61b..a3b3472701 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -363,7 +363,7 @@ You can use a symbol to defer the choice of layout until a request is processed: ```ruby class ProductsController < ApplicationController - layout "products_layout" + layout :products_layout def show @product = Product.find(params[:id]) |