Forum: Ruby on Rails RJS from 1.1.6 to 1.2.x

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.
C63e105d68d1e5e8dcba755d15de7a22?d=identicon&s=25 Eustáquio Rangel (taq)
on 2007-06-04 21:09
Hi there.

I have an application who was working fine with 1.1.6. When I upgraded
to 1.2.3, something weird happened with two RJS actions there. The code
returned from the RJS was not working anymore.

To make a small test I removed the RJS code and inserted just an
alert("Hello") there and then used Firebug to check if the request was
ok. There were the JavaScript onde on the request response, but there
were no alert on the browser.

Then I used

render :update do |page|
   page.alert "Hello"
end

and it worked. Now I'm wondering why this happened. I upgraded the
JavaScripts files, seems to have all the right stuff there, but just
worked with render :update. But, if I made some new app from the start,
code from the RJS file works. Maybe something I need to change on the
old config files? I'm planning to make a diff on some of them to check
if something changed about that, but if you guys have some tip about
this I'll be very thankful. :-)

Best regards,
This topic is locked and can not be replied to.