index.html.erb
737 Bytes
<p id="notice"><%= notice %></p>
<h1>Listing Certificates</h1>
<table>
<thead>
<tr>
<th>Key</th>
<th>Cert</th>
<th>Active</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @certificates.each do |certificate| %>
<tr>
<td><%= certificate.key %></td>
<td><%= certificate.cert %></td>
<td><%= certificate.active %></td>
<td><%= link_to 'Show', certificate %></td>
<td><%= link_to 'Edit', edit_certificate_path(certificate) %></td>
<td><%= link_to 'Destroy', certificate, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Certificate', new_certificate_path %>