1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Should be a symbol not string to defer the choice of layout.

[ci skip]
This commit is contained in:
Limon Lin 2013-03-15 13:14:26 +08:00
parent c9f75463bf
commit 6e0aafbba2

View file

@ -363,7 +363,7 @@ You can use a symbol to defer the choice of layout until a request is processed:
```ruby ```ruby
class ProductsController < ApplicationController class ProductsController < ApplicationController
layout "products_layout" layout :products_layout
def show def show
@product = Product.find(params[:id]) @product = Product.find(params[:id])