Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

index.html.erb 500B

    <div class="page-header"> <h1>Blog</h1> </div> <ul class="thumbnails"> <% @blog_posts.each do |post| %> <li class="span3"> <div class="thumbnail" style="height: 300px;"> <% if post.image.file != nil %> <%= image_tag post.image.thumb.to_s %> <% else %> <img src="http://placehold.it/300x200" alt=""> <% end %> <h3><%= link_to post.title, post_path(post) %></h3> <p><%= post.description %></p> </div> </li> <% end %> </ul> <br>