I have the following:
In my controller
def gettingstarted
@title = "Getting Started"
respond_to do |format|
format.html { render :layout => true, :showLeftNav => false }
end
end
In my default application layout file, Layouts /application.html.erb :
<% showLeftNav = true if local_assigns[:showLeftNav].nil? %>
<body style="<% if showLeftNav == false %>background:none !important;<% end %>">
Am I passing showLeftNav incorrectly from the controller to the layout?
source
share