Ruby on Rail - Format for fetching and displaying Dymanic drop down
- by Ruby
Hi,
I have 3 tables : Student , Subject and Score
Every student can add 3 Subjects (Physics, Mathematics and Chemistry) marks.
The combination of (student_id + subject_id) is added to Score table. i.e., capturing that sudent '1' has added 'Mathematics' marks with the actual score (say 0-100 range)
student id : subjectid Score
1 Mathematics 95
The Add page of Score has a "subject" drop down. which is displayed from "subject" table.
When the student wants to add the 2nd subject marks, in the add page, he should not be displayed the previoys added subject in the drop down.
Can any1 tell me how to do this?