summaryrefslogtreecommitdiff
path: root/app/views/commands/index.html.erb
blob: 07afd2460a4b9ff27b422ae100127fe04431ff59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<h1>Listing commands</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Technique</th>
  </tr>

<% @commands.each do |command| %>
  <tr>
    <td><%=h command.name %></td>
    <td><%=h command.technique %></td>
    <td><%= link_to 'Show', command %></td>
    <td><%= link_to 'Edit', edit_command_path(command) %></td>
    <td><%= link_to 'Destroy', command, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New command', new_command_path %>