On Thu, Jun 18, 2009 at 3:38 PM, Rachel
Nichol<[email protected]> wrote:
>
> Yes.  Thank you.
>
> I have ...
>
> <% @list_web_serv_cats.each do |category| %>
>  <!-- some html stuff here -->
>  <% form_tag({:controller => 'customers', :action => 
> 'list_services_available_at_location', :wsc_uid=>category['wsc_uid_pk']}) do 
> %>
>
>   <%= category['wsc_uid_pk'] %> <!-- printing to view to verify data exists 
> -->
>
>   <%= select_tag(:wsc_uid, '<option value="">Select Type</option>' + 
> options_for_select(@list_web_serv_types.collect{|servtype| 
> [servtype['wbt_description'].to_s, servtype['wbt_uid_pk'].to_i]}, 
> params[:id].to_i)) %>
> <!-- @list_web_serv_types uses param[:wsc_uid] to bring data from model/db 
> package call -->
>   <% @list_web_serv_types.each do |servtype| %>
>      <tr><td height="25px" align="left" valign="top" > <%= 
> servtype['wbt_uid_pk'] %> <%= servtype['wbt_description'] %> </td></tr>
>   <% end %> <!-- @list_web_serv_types.each end -->
>  <% end %> <!-- form_tag end -->
>  </td>
>  <!-- next column: service category subtypes -->
>  </tr>
> <% end %> <!-- @list_web_serv_cats.each end -->
>
> Thank you,
> Rachel S Nichol
> W: (843) 686-1223
> F: (843) 341-0980
>

I think you may be coming into trouble because of the use of a query
string element in the form action url as well as the form parameters.

Try
<% form_tag({:controller => 'customers', :action =>
'list_services_available_at_location'}) do %>
<%= hidden_field_tag 'wsc_uid_pk', category['wsc_uid_pk'] %>
...

Andrew Timberlake
http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to