Render file: uses current layout - docs say NO

10 views
Skip to first unread message

Janusz M

unread,
Sep 12, 2014, 4:56:48 AM9/12/14
to rubyonra...@googlegroups.com
At http://guides.rubyonrails.org/layouts_and_rendering.html#rendering-an-arbitrary-file  (also in version 3.2.13)

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

I think it's not true, at least in Rails 3.2.18. I tried yesterday (render file: ... without layout option and I needed fix it today by adding layout: nil)
Reply all
Reply to author
Forward
0 new messages