# Redirect\_to ... re-directing to the action you are currently in

**URL:** <https://www.ruby-forum.com/t/redirect-to-re-directing-to-the-action-you-are-currently-in/190518>\
**Category:** Rails\
**Created:** [June 22, 2010, 1:19am UTC](https://www.ruby-forum.com/t/redirect-to-re-directing-to-the-action-you-are-currently-in/190518 "2010-06-22T01:19:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slindsey3000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Post date:** [June 22, 2010, 1:19am UTC](https://www.ruby-forum.com/t/redirect-to-re-directing-to-the-action-you-are-currently-in/190518/1 "2010-06-22T01:19:15Z")

</div>

I am banging my head against a wall here.

I am in index

in index I check if it was the first time index has been called for  
the app.

if so I make some changes to the db and redirect\_to right back to  
index.

But… all heck seems to break loose. It seems when I redirect\_to it  
just kinda continues from the point of the redirect\_to call. It does  
not seem as though the action has been called fresh and the code run  
from the beginning of the action.

Any know of any issues I may be overlooking when in index … and  
then call redirect\_to :action =\> :index

Thanks!

Shawn
