In rails 4, I want to render a partial (say the footer) on anywhere of a page.
In home_controller.rb, I have this within a class:
def spree_application
@test = render :partial => 'spree/shared/footer'
end
When I go to the index page and added:
<%= @test %>
Nothing happens. I know I can render within the index page but Im asking if there is a way to assign the rendered link to a variable.
Thanks!
Edit: I have made a mistake with this question. I have defined: spree_application