Restrict application layout for certain views

Hi folks

Is there any way to change / restrict the application layout for certain
views?

For example, I don't want to render the header for a certain view, is
there any code such as:

<% if View != show.html.erb%>
<%= render 'layouts/header' %>
<% end %>

Thanks in advance

Jason

You could just set some session variable at the point of controller => show. And test at your rendering. However, I think that you are better off studying and learning methods associated with your Controller middleware…
Liz

You can do that by specifying the layout in the controller. See:

  http://guides.rubyonrails.org/layouts_and_rendering.html#the-layout-option

-Dave

Dave Aronson wrote in post #1176892: