X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fvideo%2Flist.rhtml;fp=app%2Fviews%2Fvideo%2Flist.rhtml;h=b98120256589e182da537310515381f516d33a9a;hb=0acc9549b65f2c3cd1840f39e31f2177a98bc55e;hp=0000000000000000000000000000000000000000;hpb=be6d865110840adfc90f572a4cf14f62bc4cf31e;p=cs356-p2-videostore.git diff --git a/app/views/video/list.rhtml b/app/views/video/list.rhtml new file mode 100644 index 0000000..b981202 --- /dev/null +++ b/app/views/video/list.rhtml @@ -0,0 +1,27 @@ +

Listing videos

+ + + + <% for column in Video.content_columns %> + + <% end %> + + +<% for video in @videos %> + + <% for column in Video.content_columns %> + + <% end %> + + + + +<% end %> +
<%= column.human_name %>
<%=h video.send(column.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 %>
+ +<%= link_to 'Previous page', { :page => @video_pages.current.previous } if @video_pages.current.previous %> +<%= link_to 'Next page', { :page => @video_pages.current.next } if @video_pages.current.next %> + +
+ +<%= link_to 'New video', :action => 'new' %>