# Lost :with Parameter on :observe\_field

**URL:** <https://www.ruby-forum.com/t/lost-with-parameter-on-observe-field/115708>\
**Category:** Rails\
**Created:** [September 27, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/lost-with-parameter-on-observe-field/115708 "2007-09-27T20:26:29Z")\
**Posts on this page:** 2\
**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, 8:26pm UTC](https://www.ruby-forum.com/t/lost-with-parameter-on-observe-field/115708/1 "2007-09-27T20:26:29Z")

</div>

I am using an :observe\_field on a series of select elements. It is  
pretty successful. I think I have found a bug 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-2711:31:39) [POST]Session ID:  
c2e7072af4526b7b7a617e526e3d161bParameters:  
{“ip\_info\_vw\_ring\_technology\_key”=\>“1”,“action”=\>“select\_technology”,  
“controller”=\>“ip”}

If I change the option in the first select again, quickly (2  
secondslater), the action sent to the controller does not contain  
the :with parameter.  
Processing IpController#select\_technology (for 0.0.0.0 at  
2007-09-2711:31:41) [POST]Session ID:  
c2e7072af4526b7b7a617e526e3d161bParameters:  
{“action”=\>“select\_technology”, “controller”=\>“ip”}

If I wat a little longer between changing options (6-7 seconds),  
itbehaves correctly. Is this a bug anyone else has seen?

Thanks for your help,

Christian

---

<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, 11:43pm UTC](https://www.ruby-forum.com/t/lost-with-parameter-on-observe-field/115708/2 "2007-09-27T23:43:39Z")

</div>

I have nailed this down a bit. It happens on ANY Ajax call. The  
reason has something to do with the fact that I am using Apache as a  
proxy server ( to get the remote\_user, and for load balancing ). I  
would like to use Apache, but this is obviously unacceptable. Does  
anoyone have any idea why this happens?
