With the following code:
<h4><%= collection_select('charge', 'id', @charges, :id, 'charge_number_with_label' , options = {:prompt =>
"– Please Select a Job Charge –"}) %></h4>
<%= observe_field "charge_id", :update => "content", :with => "id", :url =>
{:action => "show" } %>
A user select a job charge from a simple drop down. After it's selected, my action is executed and a div is populated
with the information.
If the user select job charge "1" it will successfully return the data related to job charge "1".
If I then select job charge "3", it will again return the data for job charge "1".
If I restart the server and select job charge "2", I get that data and then if i select job charge "1"
I then get job charge "2" data. So whatever is selected first during my selection will always get returned.
Running this application with mongrel works fine.
Running JRuby 1.1RC2 and the latest glassfish gem. |