Created
April 18, 2013 16:39
-
-
Save cernalpanic/5414211 to your computer and use it in GitHub Desktop.
in_groups_of example. bootstrap row class every third
This file contains 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
<div class="span6"> | |
<h3><%= link_to "Background Images", bgimages_path %></h3> | |
<% @bgimages.in_groups_of(3, false) do |bgimage_rows| %> | |
<div class="row"> | |
<% for bgimage in bgimage_rows %> | |
<div class="span2 text-left"> | |
<a href="<%= bgimage.bgimagefile.url %>"><img class="bgimagethumb img-polaroid" src="<%= bgimage.bgimagefile.url(:thumb) %>" /></a> | |
</div> | |
<% end %> | |
</div> | |
<% end %> | |
</div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment