aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2014-10-01 07:49:40 +0100
committerAbdelkader Boudih <terminale@gmail.com>2014-10-01 07:49:40 +0100
commitcd50a6dc1501cefd38caed6169fdc3ab22f88905 (patch)
treea53a4281d2d72f26491c997409c5c89df9c8e40d /guides
parent1f14b9f535682217d855ef382c3b85314066c5ab (diff)
parent67a605d3d4cf2a00b403bb31ca6c2dd98d2f04ba (diff)
downloadrails-cd50a6dc1501cefd38caed6169fdc3ab22f88905.tar.gz
rails-cd50a6dc1501cefd38caed6169fdc3ab22f88905.tar.bz2
rails-cd50a6dc1501cefd38caed6169fdc3ab22f88905.zip
Merge pull request #17124 from yuktikhurana/fix_render_file_guide
In render file, by default the current layout is rendered always [ci skip]
Diffstat (limited to 'guides')
-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.