[Rails] Unable to page.replace_html from rjs

Bryce Berny
Mon, 07 Aug 2006 21:15:32 -0000

I am having problems updating a div defined in a partial using both
Element.update and page.replace_html in an rjs.  I can put a
link_to_remote in the partial using an :update, and the div updates
fine.  Does anyone have any idea why this might be happening?

In the partial:

.
.
<div id="question_<%=question.id%>_error">
.
(if a link_to_remote is here it works)
.

In the rjs:
page.replace_html "question_#{question_id}_error", "foobar"

Thanks!

--
Posted via http://www.ruby-forum.com/.