I’m rendering a header universally across my application in layouts/application.html.erb.
I’d like to make the header not appear in a specific foo.html.erb file.
What’s the syntax for un-rendering a universal layout?
EDIT:
The controller for the layout is a devise controller, specifically Sessions Controller.
Let’s say the controller and action that renders the template foo.html.erb is ‘things#foo’ and the path to this action is things_path. You can wrap the header in conditional tags as follows
. There are several ways to achieve this, but here is one.