Add media MVC
[cs356-p2-videostore.git] / app / views / video / list.rhtml
index 27bd318..d74ec25 100644 (file)
@@ -19,7 +19,7 @@
     <td><%=h video.newrelease %></td>
     <td><%=h Videogenre.find(video.video_genre).name %></td>
     <td><%=h video.director %></td>
-    <td><%=h video.media %></td>
+    <td><%=h Media.find(video.media).name %></td>
     <td><%= link_to 'Show', :action => 'show', :id => video %></td>
     <td><%= link_to 'Edit', :action => 'edit', :id => video %></td>
     <td><%= link_to 'Destroy', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :method => :post %></td>