- <h1>Listing projects</h1>
- <table id="projects">
- <tr>
- <th>Name</th>
- <th></th>
- </tr>
- <% @projects.each do |project| %>
- <tr>
- <td><%= link_to project.name, project %></td>
- <td><%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %></td>
- </tr>
- <% end %>
- </table>
- <br />
- <%= link_to 'New Project', new_project_path %>