Created
July 8, 2013 23:12
-
-
Save marcfuentes/5953287 to your computer and use it in GitHub Desktop.
Bootstrap thumbnails index rails
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
<ul class='thumbnails' id='posts'> | |
<% @posts.each do |post| %> | |
<div id='post'> | |
<li class='span5'> | |
<div class='thumbnail'> | |
<%= image_tag post.picture_url, :width => '100%' if post.picture.present?%> | |
<h3><%= link_to post.title, post %></h3> | |
</div> | |
</div> | |
</li> | |
</div> | |
<% end %> | |
<br /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment