X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcoitem%2Flist.rhtml;fp=app%2Fviews%2Fcoitem%2Flist.rhtml;h=44b9c2d008afed8320a9913b1897295cefe77c51;hb=4930bd87730032786d9cc7f3d5c1d7cd1f5091bc;hp=0000000000000000000000000000000000000000;hpb=7ab58ec3c4bc5d29a77db40341840ad7eac97be0;p=cs356-p2-videostore.git diff --git a/app/views/coitem/list.rhtml b/app/views/coitem/list.rhtml new file mode 100644 index 0000000..44b9c2d --- /dev/null +++ b/app/views/coitem/list.rhtml @@ -0,0 +1,31 @@ +
Customer | +Rentable | + <% for column in Coitem.content_columns %> +<%= column.human_name %> | + <% end %> +|||
---|---|---|---|---|---|
<%=h Customer.find(coitem.customer_id).name %> | +<%=h Rentable.find(coitem.rentable_id).title %> | + <% for column in Coitem.content_columns %> +<%=h coitem.send(column.name) %> | + <% end %> +<%= link_to 'Show', :action => 'show', :id => coitem %> | +<%= link_to 'Edit', :action => 'edit', :id => coitem %> | +<%= link_to 'Destroy', { :action => 'destroy', :id => coitem }, :confirm => 'Are you sure?', :method => :post %> | +