Commit 553f3e2

mo khan <mo@mokhan.ca>
2013-06-13 13:14:35
display email of user who submitted the cake
1 parent c669b10
Changed files (1)
app
views
app/views/cakes/index.html.erb
@@ -6,7 +6,7 @@
         <div class="thumbnail">
           <a href="<%= url_for cake %>"><%= image_tag cake.photo.url(:thumb), alt: cake.name %></a>
           <div class="caption">
-            <h3><a href="<%= url_for cake %>"><%= cake.name %></a></h3>
+            <h3><a href="<%= url_for cake %>"><%= cake.name %></a> <small>by <%= cake.user.email %></small></h3>
             <p><a class="btn" href="<%= url_for cake %>">View</a></p>
             <p><%= cake.category.name rescue 'N/A' %></p>
           </div>