I have a loop like such:
<% @posts.each do |post| %>
<% render middle %>
<% end %>
Then in my middle partial, how do I access the current post?
See Question&Answers more detail:osI have a loop like such:
<% @posts.each do |post| %>
<% render middle %>
<% end %>
Then in my middle partial, how do I access the current post?
See Question&Answers more detail:os