Listing payments

<% @payments.each do |payment| %> <% end %>
Profile
<%= payment.profile %> <%= link_to 'Show', payment %> <%= link_to 'Edit', edit_payment_path(payment) %> <%= link_to 'Destroy', payment, method: :delete, data: { confirm: 'Are you sure?' } %>

<%= link_to 'New Payment', new_payment_path %>