20 lines
389 B
Plaintext
20 lines
389 B
Plaintext
|
<h1>Listing maps</h1>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
</tr>
|
||
|
|
||
|
<% @maps.each do |map| %>
|
||
|
<tr>
|
||
|
<td><%=h map.name %></td>
|
||
|
<td><%= link_to 'Show', map %></td>
|
||
|
<td><%= link_to 'Edit', edit_map_path(map) %></td>
|
||
|
<td><%= link_to 'Destroy', map, :confirm => 'Are you sure?', :method => :delete %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
|
||
|
<br />
|
||
|
|
||
|
<%= link_to 'New map', new_map_path %>
|