# Observe\_form + call back after page changes - why?

**URL:** <https://www.ruby-forum.com/t/observe-form-call-back-after-page-changes-why/161664>\
**Category:** Rails\
**Created:** [February 28, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/observe-form-call-back-after-page-changes-why/161664 "2009-02-28T17:30:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 28, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/observe-form-call-back-after-page-changes-why/161664/1 "2009-02-28T17:30:20Z")

</div>

Hello there,

I have a live search that gimme a list of products.  
In that list, I have a link for each product. That link render the  
product page.

The problem is: After the product page renders, the observe\_form calls  
one last time, and generates an error, because of an invalid div.

Does anyone now why?

Tks

David S.

codes =\>  
observer : [http://pastie.org/403081](http://pastie.org/403081)  
list : [http://pastie.org/403083](http://pastie.org/403083)  
action : [http://pastie.org/403085](http://pastie.org/403085)

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [March 2, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/observe-form-call-back-after-page-changes-why/161664/2 "2009-03-02T21:33:55Z")

</div>

Anyone?  
I did not find the solution yet!

tks,

David S.

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [March 2, 2009, 10:54pm UTC](https://www.ruby-forum.com/t/observe-form-call-back-after-page-changes-why/161664/3 "2009-03-02T22:54:27Z")

</div>

On Mar 2, 2:33 pm, David S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Anyone?  
> I did not find the solution yet!

Neither did I. I have a similar problem with observe\_form, using it  
for validations.

It fires a PUT for each field change I make, and a POST (to my  
validation controller method) after the changes are submitted to the  
server.

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [June 2, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/observe-form-call-back-after-page-changes-why/161664/4 "2009-06-02T12:15:43Z")

</div>

Same here, I notice the same behaviour, when changing a field a PUT is  
sent, why?

decalod85 wrote:

> On Mar 2, 2:33ï¿½pm, David S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Anyone?  
> > I did not find the solution yet!
> 
> Neither did I. I have a similar problem with observe\_form, using it  
> for validations.
> 
> It fires a PUT for each field change I make, and a POST (to my  
> validation controller method) after the changes are submitted to the  
> server.
