Ruby on Rail - Format for fetching and displaying Dymanic drop down

Posted by Ruby on Stack Overflow See other posts from Stack Overflow or by Ruby
Published on 2011-02-12T07:20:43Z Indexed on 2011/02/12 7:25 UTC
Read the original article Hit count: 164

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about jruby