Created
August 17, 2013 13:52
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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