From 6e0aafbba2300e78ecb8bf956dd5e90b6acf6b94 Mon Sep 17 00:00:00 2001 From: Limon Lin Date: Fri, 15 Mar 2013 13:14:26 +0800 Subject: [PATCH] Should be a symbol not string to defer the choice of layout. [ci skip] --- guides/source/layouts_and_rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])