<%= render :partial => "thing", :collection => @coll, :spacer_template => "filename_to_file_with_hr_inside_it" %>
New version with code embedded:
<%= @coll.map { |item| render :partial => "thing", :locals => {:thing => item} }.join("<hr />") %>
2807 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
<%= render :partial => "thing", :collection => @coll, :spacer_template => "filename_to_file_with_hr_inside_it" %>
<%= @coll.map { |item| render :partial => "thing", :locals => {:thing => item} }.join("<hr />") %>
You need to create an account or log in to post comments to this site.
How can this be modified to also pass the counter value (ie. :thing_counter)?