Forum: Ruby on Rails observe_form only works once

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
163c4dde06224ed6701d8969c361fc60?d=identicon&s=25 Carl J. (carlivar)
on 2007-06-22 07:31
I'm using observe_form for a simple ajax rating/voting system. When the
user changes the form it works great. However, I replace the form with a
:partial in my ajax data returned to reflect the new rating. For some
reason after one successful operation it does not work again... changing
the form has no effect.

If I view the page source it all looks as it should.

Does observe_form stop working once you replace the observed form?
163c4dde06224ed6701d8969c361fc60?d=identicon&s=25 Carl J. (carlivar)
on 2007-06-22 07:37
> Does observe_form stop working once you replace the observed form?

Er, sorry for the reply to myself, but I found a bug in trac describing
my exact problem. Apparently it is a prototype bug dealing with radio
buttons. :(

http://dev.rubyonrails.org/ticket/7895

I need to search Rails Trac before posting here!
This topic is locked and can not be replied to.