20 lines
429 B
Plaintext
20 lines
429 B
Plaintext
|
<h1>Listing projects</h1>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
</tr>
|
||
|
|
||
|
<% @projects.each do |project| %>
|
||
|
<tr>
|
||
|
<td><%=h project.name %></td>
|
||
|
<td><%= link_to 'Show', project %></td>
|
||
|
<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 />
|
||
|
|
||
|
<%= link_to 'New project', new_project_path %>
|