2010-03-04 06:22:45 +00:00
|
|
|
<h1>Listing projects</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @projects.each do |project| %>
|
|
|
|
<tr>
|
|
|
|
<td><%=h project.name %></td>
|
2010-03-05 06:48:00 +00:00
|
|
|
<td><%= link_to 'Show', project_path(project) %></td>
|
2010-03-04 06:22:45 +00:00
|
|
|
<td><%= link_to 'Edit', edit_project_path(project) %></td>
|
|
|
|
<td><%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2010-03-05 06:48:00 +00:00
|
|
|
<%= will_paginate @projects %>
|
|
|
|
|
2010-03-04 06:22:45 +00:00
|
|
|
<%= link_to 'New project', new_project_path %>
|