<h1>Listing categories</h1> 
<table> 
  <tr> 
    <th>Name</th> 
  </tr> 
<% for category in @all_categories %> 
  <tr> 
    <td><%=h category.long_name %></td> 
    <td><%= link_to 'Edit', edit_category_path(category) %></td> 
    <td><%= link_to 'Destroy', :confirm => 'Are you sure?', :method => :delete %></td> 
  </tr> 
<% end %> 
</table> 
<br /> 
<%= link_to 'New category', new_category_path %>