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:
parent
c9f75463bf
commit
6e0aafbba2
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue