How do you use a partial in a layout template?
layout, ruby-on-rails
Solution
just use
= render :partial => '/layouts/tracking'
Problem
I have a partial that I'd like to use in a layout but when I load up a page it'll look in a different folder for the partial. So for my layout I've got. ``` %html %head %body .content = yield .footer = render :partial => 'tracking' ``` And in my layouts folder I have the partial file "app/views/layouts/_tracking.html.haml" that I'd like to use in the layout for all pages. But when I load up a page It'll give me an error saying it can't find the template "products/_tracking.erb"