Forum: Ruby on Rails Action variables not available in views with Ajax

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.
Daniel W. (Guest)
on 2006-01-26 23:08
(Received via mailing list)
The title pretty much describes my problem.

I have a standard Ajax call to an action the updates a portion of my
However, variables set inside the action are not available in my view.
fact, NOTHING that happens in my action seems to affect my view. Calling
render :layout => false still gives me the flipping layout.

However, I know the Ajax call itself is working because I can do
whatever I
want in my view.

Any ideas?

- Rabbit
Daniel W. (Guest)
on 2006-01-27 00:54
(Received via mailing list)
Ah ha! The culprit was the method name: "load"

I *knew* the Ajax portion was working fine - I could see the proper
coming through Webrick - so I decided to start a brand new application
make the simplest thing that could possibly work.

And sure enough, it did work. It was on a whim that I tried changing the
method name in my real application. Lucky me. :)

Anyway, hopefully my folly will save others the hassle! ***Do not use
as a method name! (At least not with Ajax.)***

- Rabbit

This topic is locked and can not be replied to.