Select in a loop

Hi
My view code is

<% for hardware_ci in @hardware_cis %>

<%= select( "sd_ci", "service_desk_ci_association_type_id", ServiceDeskCiAssociationType.find(:all).collect {|p| [ p.description, p.id ] }) %> <%= hidden_field "sd_ci", "id", "value" => hardware_ci.ci.id %> <% end %>

<% for document_ci in @document_cis %>

<%= select( "sd_ci", "service_desk_ci_association_type_id", ServiceDeskCiAssociationType.find(:all).collect {|p| [ p.description, p.id ] }) %> <%= hidden_field "sd_ci", "id", "value" => document_ci.ci.id %> <% end %>

I am using submit_to_remote to submit this form.In controller I want to
extract the pairs
service_desk_ci_association_type_id,hardware_ci.ci.id and
service_desk_ci_association_type_id,document_ci.ci.id.For example
suppose there are total 10 items in the view and if only 2 of them are
selected i need them. And save them to table.How can I do this.Please
help.It is very urgent.

Sijo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs