In render file, by default the current layout is rendered always

This commit is contained in:
yuktikhurana 2014-10-01 11:03:49 +05:30
parent 79c491e838
commit 67a605d3d4
1 changed files with 1 additions and 1 deletions

View File

@ -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.