> <tr><td></td>
>    <% @assignments.each do |assignment| %>
>      <td>
>        <%= h assignment.name %>
>      </td>
>    <% end %>
> </tr>
> 
> <% @students.each do |student| %>
> <tr>
>    <td> <%= h student.name %> </td>
>    <% @assignments.each do |assignment| %>
>      <td>
>        <% if g = student.gradation_hash[assignment.id] %>
>          <%= h g.grade %>
>        <% end %>
>      </td>
>    <% end %>
> </tr>
> <% end %>

Fred, your code has done the trick. It works perfect! Thanks a bundle!

All I need to do now is figure out how to get edit_in_place working with
the grade fields in the view and I am sorted.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to