Sha256: 704366360efa68bbe5225ace78dde1fae5795ebdd73c7df41fbbee50aeea38e6
Contents?: true
Size: 1.28 KB
Versions: 59
Compression:
Stored size: 1.28 KB
Contents
<p id="notice"><%= notice %></p> <h1>Listing Auth Shopping Payments</h1> <table> <thead> <tr> <!-- id number, this will also hold links to edit and destroy. --> <th>Number</th> <th>Id Number</th> <!-- get the names of the other fields to be shown--> <% @auth_shopping_payments.first.attributes_to_show.each do |attr| %> <th><%= attr %></th> <% end %> </tr> </thead> <tbody> <% @auth_shopping_payments.each_with_index {|auth_shopping_payment,key| %> <tr> <td><%= key + 1 %></td> <td> <div> <%= link_to auth_shopping_payment.id.to_s, payment_path(auth_shopping_payment) %> </div> <div> <!-- add destory and edit options here --> <!-- end --> <span><%= link_to 'Edit', edit_payment_path(auth_shopping_payment) %></span> <span><%= link_to 'Destroy', payment_path(auth_shopping_payment), medthod: :delete, data: { confirm: 'Are you sure?' } %></span> </div> </td> <% @auth_shopping_payments.first.attributes_to_show.each do |attr| %> <td><%= auth_shopping_payment.send("#{attr}") %></td> <% end %> </tr> <% } %> </tbody> </table> <br> <%= link_to 'New Payment', new_payment_path %>
Version data entries
59 entries across 59 versions & 1 rubygems