> How does the new assignment know which students it applies to? I assume
> that there is something else (like a Course) that the assignment belongs
> to, to which the students are related as well...
>
> When you create a new assignment for a course, that action should be the
> one to walk the list of students in the course and create the gradations
> to link its students to the new assignment.
Okay thanks,
I have tried the following in my gradations controller;
def create
@assignment = Assignment.new(params[:assignment])
@gradation = Gradation.new(params[:gradation])
But it doesn't seem to work. I know I need to link the two together but
am not sure how.
Any ideas?
--
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
-~----------~----~----~----~------~----~------~--~---