<h1>Listing Assignments</h1>

<table border="1">
  <tr>
	<th>ID</th>
    <th>Ordering</th>
    <th>Description</th>
    <th>Due date</th>
    <th>Groupf</th>
  </tr>

<% @assignments.each do |assignment| %>
  <tr>
	<td><%=h assignment.id %></td>
    <td><%=h assignment.ordering %></td>
    <td><%=h assignment.description %></td>
    <td><%=h assignment.due_date %></td>
    <td><%=h assignment.groupf %></td>
    <td><%= link_to 'Show', assignment %></td>
    <td><%= link_to 'Edit', edit_assignment_path(assignment) %></td>
    <td><%= link_to 'Destroy', assignment, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New assignment', new_assignment_path %>