mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
In render file, by default the current layout is rendered always
This commit is contained in:
parent
79c491e838
commit
67a605d3d4
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ render file: "/u/apps/warehouse_app/current/app/views/products/show"
|
|||
|
||||
The `:file` option takes an absolute file-system path. Of course, you need to have rights to the view that you're using to render the content.
|
||||
|
||||
NOTE: By default, the file is rendered without using the current layout. If you want Rails to put the file into the current layout, you need to add the `layout: true` option.
|
||||
NOTE: By default, the file is rendered using the current layout.
|
||||
|
||||
TIP: If you're running Rails on Microsoft Windows, you should use the `:file` option to render a file, because Windows filenames do not have the same format as Unix filenames.
|
||||
|
||||
|
|
Loading…
Reference in a new issue