Skip to content

Instantly share code, notes, and snippets.

@flarnie
Created August 17, 2013 13:52
Show Gist options
  • Save flarnie/6256958 to your computer and use it in GitHub Desktop.
Save flarnie/6256958 to your computer and use it in GitHub Desktop.
Recursive Partial Example Part II- Rendering the top level comments in the view.
<ul>
<% @comments_by_parent[nil].each do |comment| %>
<%= render "comment", :comment => comment, :comments_by_parent => @comments_by_parent %>
</ul>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment