On my view page, I want to hide the footer partial that is defined in my application.html.erb, how can I do this?
what options do I have to do this?
The easiest/quickest way would probably be to define a conditional:
<%= render "layouts/footer" unless @skip_footer %>
and then set the variable as necessary in your actions:
def non_footer_action
do_stuff
@skip_footer = true
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With