X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Frentable%2Flist.rhtml;fp=app%2Fviews%2Frentable%2Flist.rhtml;h=19f6f758f232f1eeade0dd6399e5e5cc56a19fd6;hb=28e07f23e1c75f7442dd87caf34f0f47109bf966;hp=39883c5e4542b396d250461fba5f3a68d639dd59;hpb=efda2177d976f584b930146d9db1d4b20f1910c0;p=cs356-p2-videostore.git diff --git a/app/views/rentable/list.rhtml b/app/views/rentable/list.rhtml index 39883c5..19f6f75 100644 --- a/app/views/rentable/list.rhtml +++ b/app/views/rentable/list.rhtml @@ -2,6 +2,8 @@ + + <% for column in Rentable.content_columns %> <% end %> @@ -9,6 +11,16 @@ <% for rentable in @rentables %> + + <% for column in Rentable.content_columns %> <% end %>
IDTitle<%= column.human_name %>
<%=h rentable.id %> + <% if Game.find(:first, :conditions => "rentable_id='#{rentable.id}'") %> + Game + <% elsif Video.find(:first, :conditions => "rentable_id='#{rentable.id}'") %> + Video + <% else %> + ERROR + <% end %> + <%=h rentable.send(column.name) %>