I have a partial that I would like to use in the layout, but when I load the page, it will look in another folder for the partial.
So, for my layout I have.
%html
%head
%body
.content
= yield
.footer
= render :partial => 'tracking'
And in my layouts folder, I have a partial file "app / views / layouts / _tracking.html.haml" that I would like to use in the layout for all pages. But when I load the page, it will give me an error saying that it cannot find the template "products / _tracking.erb"
source
share