# "You are being redirected" message - please help!

**URL:** <https://www.ruby-forum.com/t/you-are-being-redirected-message-please-help/167353>\
**Category:** Rails\
**Created:** [May 6, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/you-are-being-redirected-message-please-help/167353 "2009-05-06T23:21:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maven22](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@maven22](https://www.ruby-forum.com/u/maven22)\
**Post date:** [May 6, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/you-are-being-redirected-message-please-help/167353/1 "2009-05-06T23:21:01Z")

</div>

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](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
