Question : Write Check Box values to database (Ruby on Rails)

I have the need to create a large number of check boxes (22), and then write the values to a single entry within Ruby on Rails.

The user will fill out a form, and select the check boxes for the services they provide, and then those check box values are written to the database with the form submission.


please help,
Jason
Code Snippet:
1:
2:
3:
4:
5:
6:
I have written this
 
<%= f.check_box :services_transportationmanagement, {:class => 'check_box'}, "Transportation Management", "" %> Transportation Management
 
but would like to user something like this:
<%= f.check_box :organizationservices, {:class => 'check_box'}, "", "" %> Transportation Management
Open in New Window Select All

Answer : Write Check Box values to database (Ruby on Rails)

I've tested the code... works great..

LTCJ
Random Solutions  
 
programming4us programming4us