Commit d7314a0a

mo khan <mo@mokhan.ca>
2013-07-02 06:22:07
use image_tag instead of img
1 parent 44a6992
Changed files (1)
app
views
app/views/creations/index.html.erb
@@ -56,7 +56,7 @@
         <% @creations.each do |creation| %>
           <div class="span4">
             <div class="thumbnail">
-              <a href="<%= url_for creation %>"><img src="<%= creation.primary_image.image.large.url %>" /></a>
+              <a href="<%= url_for creation %>"><%= image_tag creation.primary_image.image.large.url %></a>
               <div class="caption">
                 <h3><a href="<%= url_for creation %>"><%= creation.name %></a> <em><small>by <a href="<%= url_for profile_path(creation.user) %>"> <%= shrink(creation.user.name, 20) %></a></small></em></h3>
                 <p><%= creation.story %></p>