I am a bit confused when coming from layout and partials.
To start of I have a file called application.html.erb which has my
layout such has follow
<%= render 'layouts/footer' %>
This call a new file _footer.html.erb
This file his has follow
<%= render "pages/link" %>
Which calls a partial in the folder Pages which his a resources and has
_link.html.erb and contains the follow
<%= @pages.each do |page| %>
<%= page.name %>
<% end %>
Now the issues is @pages.each his nil and I understand the caller will
initiate the @pages = Page.all but the caller is who??
I try application and inserting it and doesnt see it, What i am doing