Skip to content

Instantly share code, notes, and snippets.

@evantravers
Created July 6, 2011 16:21
Show Gist options
  • Save evantravers/1067654 to your computer and use it in GitHub Desktop.
Save evantravers/1067654 to your computer and use it in GitHub Desktop.
<h1>Listing lists</h1>
<table>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
<% @lists.each do |list| %>
<tr>
<td><%= list.name %></td>
<td><%= link_to 'Show', list %></td>
<td><%= link_to 'Edit', edit_list_path(list) %></td>
<td><%= link_to 'Destroy', list, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New List', new_list_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment