box-o-sand/oldstuff/map-mash/app/views/maps/index.html.erb

20 lines
389 B
Plaintext
Raw Normal View History

2012-04-04 03:02:32 +00:00
<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 %>