When I render a layout while passing it a block, for example:
render(:layout => 'layouts/application') {...}
it requires the layout to be a partial (_application.html.erb). Is it possible to render a regular, non-partial layout without the leading underscore in its name?
Thanks!
If you pass a block to render, it is rendered as a partial as seen in the snippet below:
The full render method in Rails 3 currently looks as follows: