Hi
My view code is
<% for hardware_ci in @hardware_cis %>
<td> <%= select( "sd_ci",
"service_desk_ci_association_type_id",
ServiceDeskCiAssociationType.find(:all).collect {|p| [ p.description,
p.id ] }) %></td>
<%= hidden_field "sd_ci", "id", "value" =>
hardware_ci.ci.id %>
<% end %>
<% for document_ci in @document_cis %>
<td> <%= select( "sd_ci",
"service_desk_ci_association_type_id",
ServiceDeskCiAssociationType.find(:all).collect {|p| [ p.description,
p.id ] }) %> </td>
<%= 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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---