# Observe Field :with Parameter Lost on Quick Re-Select

**URL:** <https://www.ruby-forum.com/t/observe-field-with-parameter-lost-on-quick-re-select/115686>\
**Category:** Rails\
**Created:** [September 27, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/observe-field-with-parameter-lost-on-quick-re-select/115686 "2007-09-27T17:40:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@christian](https://www.ruby-forum.com/u/christian)\
**Post date:** [September 27, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/observe-field-with-parameter-lost-on-quick-re-select/115686/1 "2007-09-27T17:40:52Z")

</div>

I am using an :observe\_field on a series of select elements. It is  
pretty successful. There is one bug with it that is killing me  
though. When I change the option in a select, the :with parameter is  
sent, the next element is updated, and everything is good.

Processing IpController#select\_technology (for 0.0.0.0 at 2007-09-27  
11:31:39) [POST]  
Session ID: c2e7072af4526b7b7a617e526e3d161b  
Parameters: {“ip\_info\_vw\_ring\_technology\_key”=\>“1”,  
“action”=\>“select\_technology”, “controller”=\>“ip”}  
The actual tech key is 1  
The session tech key is 1

If I change the option in the first select again, quickly (2 seconds  
later), the action sent to the controller does not contain the :with  
parameter.

Processing IpController#select\_technology (for 0.0.0.0 at 2007-09-27  
11:31:41) [POST]  
Session ID: c2e7072af4526b7b7a617e526e3d161b  
Parameters: {“action”=\>“select\_technology”, “controller”=\>“ip”}  
The actual tech key is 0  
The session tech key is 0

If I wat a little longer between changing options (6-7 seconds), it  
behaves correctly. Is this a bug anyone else has seen? It is  
maddening!

Thanks for your help,

Christian
