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

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.
24e30ea2f4bfda89a9a915dd18247d05?d=identicon&s=25 Jeremy Huffman (Guest)
on 2006-03-19 07: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:

http://www.codyfauser.com/articles/2005/11/20/rail...

and

http://rails.techno-weenie.net/tip/2005/11/29/ajax...

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.