<p>
  <b>Student ID:</b>
  <%=h @igrade.student_id %>
</p>
<p>
<b>Student Name: </b>
<%=h Student.find(:all, :select => "students.name", 
     :conditions => "id = #{@igrade.student_id} " ).collect{|s| s.name} %>	
</p>
<p>
  <b>Assignment ID:</b>
  <%=h @igrade.assignment_id %>
</p>
<p>
<b>Assignment Description: </b>	
<%=h Assignment.find(:all, :select => "assignments.description", 
     :conditions => "id = #{@igrade.assignment_id} " ).collect{|s| s.description} %>
</p>
<p>
  <b>Grade:</b>
  <%=h @igrade.grade %>
</p>


<%= link_to 'Edit', edit_igrade_path(@igrade) %> |
<%= link_to 'Back', igrades_path %>