RJS from 1.1.6 to 1.2.x

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. :slight_smile:

Best regards,