app/views/shared/_project_listing.html.erb
<% add :menu, "New Project" => new_project_path if can?(:create, Project) -%>
<table class="sortable table table-striped" id="summary" data-paging="true">
<thead>
<tr>
<th><a>Name</a></th>
<th><a>State</a></th>
</tr>
</thead>
<tbody>
<% @projects.pluck(:id,:name,:state).each do |id, name, state| %>
<tr>
<td><%= link_to name, project_path(id)%></td>
<td><%= state %></td>
</tr>
<% end %>
</tbody>
</table>
<br />