Listing videos

<% for video in @videos %> <% end %>
Video ID Checked Out Title New Release Genre Director Media
<%=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 %>
<%= 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' %>