Commit a049ec97

mo khan <mo@mokhan.ca>
2014-01-18 06:37:12
add time ago to homepage.
1 parent 12fad80
Changed files (1)
app
views
app/views/creations/index.html.erb
@@ -55,6 +55,7 @@
               <div class="caption">
                 <h3><%= link_to creation.name, creation %> <em><small>by <%= link_to shrink(creation.user.name, 20), profile_path(creation.user) %></small></em></h3>
                 <p><%= creation.story %></p>
+                <p><small><%= time_ago_in_words(creation.created_at) %> ago.</small></p>
               </div>
             </div>
           </div>