Basing Drop Down from Check Box

rachel
Wed, 17 Jun 2009 19:25:13 -0000

Hello All,

I am very new to Web Development (in general) and Ruby on Rails and
have been stumped on this for awhile.

In my view I have a check box of which I need to grab a primary key
value when checked.

The primary key value will then need to be used to generate and
populate a corresponding drop down list.

Currently the data generated to view is similar to ...

Telephone (primary key of 1) [check box] ... web user clicks check box
then I need to display corresponding database data based on the
primary key

Internet     (primary key of 2) [check box] ... same concept for
Telephone using Internet PK

Television  (primary key of 3) [check box] ... same concept for
Telephone using Television PK

Can anyone please help me?

Rachel