Forum: Ruby on Rails RJS Templates Don't Automatically Eval

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jeremy H. (Guest)
on 2006-03-19 08:29
(Received via mailing list)
Following the directions for using RJS has nearly worked for me -
actually I'm using it successfully but not the way its documented and
others have reported it working. The javascript code is generated
properly but its not evaluted.

I followed instructions found at:


My template is very simple right now, I just include the partial that
I would have been updating from before:

page.replace_html 'list_items_div', :partial => 'items'

Which all works fine, if I put add a :complete to my form_remote_tag
it will work just as advertised, but I'm concerned something is wrong
if I have to do this, and if its fixed later I'd get the eval
happening twice which could be a problem for some code ...

I'm running edge rails and I've ensured prototype.js is updated.

Any other ideas?
This topic is locked and can not be replied to.