El 29/03/11 09:24, Ankur escribió:
This image has the correct terminology:
http://dl.dropbox.com/u/766146/ruby-on-rails-data-relationships.png
Thank you. This is very descriptive!
You will want to implement the last one with a enrollment model which
will give you date of enrollment, etc. Even if you don't fill it yet,
is useful to have. Otherwise you can put has and belongs to many on
each model. (not covered in the picture)
The relationships
has_many :students (on the course model)
belongs_to :course (on the student model)
Are the ones I need because in this case the student can one go to one
course at a time. It belongs_to course and only one course.
My problem is not related with models but with views. I need to be able
to show what course the student is taking and what course he should take
next on the same page.
--
Quiliro Ordóñez
09 821 8696
02 340 1517
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.