X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fvideo%2Flist.rhtml;h=d74ec253f17ff8bf0967f6f37f65a11e4c6dccaa;hb=01114330b962728805d3c43f2f1a1423f2bd66b3;hp=1a0ec1642e9c48e0081ba5be03875171bd797a01;hpb=3947513155ffed3b49a2cd0e80cd3ef26b551f59;p=cs356-p2-videostore.git diff --git a/app/views/video/list.rhtml b/app/views/video/list.rhtml index 1a0ec16..d74ec25 100644 --- a/app/views/video/list.rhtml +++ b/app/views/video/list.rhtml @@ -2,20 +2,24 @@
Video ID | -Checked Out | - <% for column in Video.content_columns %> -<%= column.human_name %> | - <% end %> +Video ID | +Checked Out | +Title | +New Release | +Genre | +Director | +Media | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|
<%=h video.id %> | -<%=h video.checkedout? %> | - <% for column in Video.content_columns %> -<%=h video.send(column.name) %> | - <% end %> +<%=h video.id %> | +<%=h video.checkedout? %> | +<%=h video.title %> | +<%=h video.newrelease %> | +<%=h Videogenre.find(video.video_genre).name %> | +<%=h video.director %> | +<%=h Media.find(video.media).name %> | <%= link_to 'Show', :action => 'show', :id => video %> | <%= link_to 'Edit', :action => 'edit', :id => video %> | <%= link_to 'Destroy', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :method => :post %> |