Restrict application layout for certain views

Hi folks

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

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


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…

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


Dave Aronson wrote in post #1176892: