aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authoryuktikhurana <yukti@vinsol.com>2014-10-01 11:03:49 +0530
committeryuktikhurana <yukti@vinsol.com>2014-10-01 11:03:49 +0530
commit67a605d3d4cf2a00b403bb31ca6c2dd98d2f04ba (patch)
tree70a7a5d64c52ca3dbe36f48bb970c9ec418a737c /guides/source
parent79c491e838f83b027b093242cdaf22f47935c258 (diff)
downloadrails-67a605d3d4cf2a00b403bb31ca6c2dd98d2f04ba.tar.gz
rails-67a605d3d4cf2a00b403bb31ca6c2dd98d2f04ba.tar.bz2
rails-67a605d3d4cf2a00b403bb31ca6c2dd98d2f04ba.zip
In render file, by default the current layout is rendered always
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index ac254fc000..ae16ad86cd 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -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.