Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created February 23, 2014 17:14
Show Gist options
  • Save axilaris/9174206 to your computer and use it in GitHub Desktop.
Save axilaris/9174206 to your computer and use it in GitHub Desktop.
<h1>Listing payment_accounts</h1>
<table>
<thead>
<tr>
<%= @x %>
<th>Name</th>
<th>Company</th>
<th>Data</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<% @payment_accounts.each do |payment_account| %>
<tr>
<td><%= payment_account.name %></td>
<td><%= payment_account.company %></td>
<td><%= payment_account.data %></td>
<td><%= Json.parse(payment_account.data) %></td>
<td><%= link_to 'Show', payment_account %></td>
<td><%= link_to 'Edit', edit_payment_account_path(payment_account) %></td>
<td><%= link_to 'Destroy', payment_account, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Payment account', new_payment_account_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment