New to rails and having some trouble rendering a partial. Essentially,
I want the partial to display an index of all the items from another
model. Do I need to add something to the controller to do this?
<%= render :partial => ‘milestones/list’, :collection=> @milestones
<% @milestones.each do |milestone| %>
It doesn’t give me an error, but neither does it give me the partial.
If I remove :collection then I get a nil object error.