"You are being redirected" message - please help!

Hi -

I’ve inherited some old code that I’m must get working with Rails
2.3.2 as soon as possible. Unfortunately, the previous developer
didn’t take much regard to the documentation surrounding
render_component (and how it really shouldn’t be used), and I’m forced
to either completely rewrite a large portion of code (which I would
rather not do, since I’m under a tight time constraint) or try to get
it to work right now to buy me some time to rewrite it.

Here’s the issue I’m having. After upgrading to Rails 2.3.2, I
installed the render_component plugin as that functionality has been
(wisely) removed from Rails. It seems to be working as expected
except for the issue I’m having: Upon rendering a component which
contains a redirect_to action, I am directed to a plain white page
that says “You are being redirected.” with a link to the destination
URL.

The destination URL in the link is correct, and everything works well
once I click the link, but it appears EVERY time I try to perform this
action.

There is no error showing up in the log, which is making this really
baffling to me. I am running in development mode, using “script/
server”. To see what was going on, after the render_component call,
I print out the “headers” hash, and it looks as follows:

— !map:Rack::Utils::HeaderHash
P3P: CP=“IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND
CNT”
X-Runtime: “91”
Location: http://localhost:3000/DEST_URL
Cache-Control: no-cache

I’ve been working on this on-and-off with absolutely no luck, and it’s
getting pretty frustrating.

Please, I would appreciate any ideas, tips, advice, or (hopefully)
solutions. I thank you in advance for anything you can contribute.

-Matt