Thanks fred,
The problem with creating gradations separately when students complete
assignments, is that I am then left with no fields in my view in which
to enter grades. My plan was to have it so that when an assignment was
created, a corresponding grade field would be created for each student
containing some kind of default value that could then be edited using
the inplace edit control.
I have got as far as making it so that a grade field is automatically
created for each new assignment:
def create
@assignment = Assignment.new(params[:assignment])
@gradation = @assignment.gradations.build(params[:gradation])
But I don't know how to pass the student id in so that a new grade field
is created for each and every existing student...
--
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
-~----------~----~----~----~------~----~------~--~---