Skip to content
This repository
Browse code

fixing show action on episode 340

  • Loading branch information...
commit 9653d784d44ecb43bfbf4ed8e1d430c5d077c4b3 1 parent f42cadb
Ryan Bates authored April 14, 2012
2  episode-340/store-after/app/views/products/show.html.erb
@@ -12,7 +12,7 @@
12 12
 
13 13
 <p>
14 14
   <b>Category:</b>
15  
-  <%= @product.category.name %>
  15
+  <%= @product.category %>
16 16
 </p>
17 17
 
18 18
 <%= link_to 'Back', products_path %>
2  episode-340/store-before/app/views/products/show.html.erb
@@ -12,7 +12,7 @@
12 12
 
13 13
 <p>
14 14
   <b>Category:</b>
15  
-  <%= @product.category.name %>
  15
+  <%= @product.category %>
16 16
 </p>
17 17
 
18 18
 <%= link_to 'Back', products_path %>

0 notes on commit 9653d78

Please sign in to comment.
Something went wrong with that request. Please try again.