<h1>Summary for student</h1>

<table border="1">
  <tr>
    <th>Assignment ID</th>
    <th>Assignment Description</th>
    <th>Grade</th>
  </tr>

<% @igrades.each do |igrade| %>
  <tr>
    <td><%=h igrade.assignment_id %></td>
    <td><%=h Assignment.find(:all, :select => "assignments.description", :order => "id",
        :conditions => "id = #{igrade.assignment_id} " ).collect{|s| s.description} %></td>
    <td><%=h igrade.grade %></td>
    <td><%= link_to 'Show', igrade %></td>
  </tr>
<% end %>
</table>

<br />