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

Listing merchandises

+ + + + <% for column in Merchandise.content_columns %> + + <% end %> + + +<% for merchandise in @merchandises %> + + <% for column in Merchandise.content_columns %> + + <% end %> + + + + +<% end %> +
<%= column.human_name %>
<%=h merchandise.send(column.name) %><%= link_to 'Show', :action => 'show', :id => merchandise %><%= link_to 'Edit', :action => 'edit', :id => merchandise %><%= link_to 'Destroy', { :action => 'destroy', :id => merchandise }, :confirm => 'Are you sure?', :method => :post %>
+ +<%= link_to 'Previous page', { :page => @merchandise_pages.current.previous } if @merchandise_pages.current.previous %> +<%= link_to 'Next page', { :page => @merchandise_pages.current.next } if @merchandise_pages.current.next %> + +
+ +<%= link_to 'New merchandise', :action => 'new' %>