<h1>Listing somethings</h1>

<table>
  <tr>
    <th>Title</th>
  </tr>
  
<% for something in @somethings %>
  <tr>
    <td><%=h something.title %></td>
    <td><%= link_to 'Show', something_path(something) %></td>
    <td><%= link_to 'Edit', edit_something_path(something) %></td>
    <td><%= link_to 'Destroy', something_path(something), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New something', new_something_path %>