# Redirection problem help me

**URL:** <https://www.ruby-forum.com/t/redirection-problem-help-me/87391>\
**Category:** Deployment\
**Created:** [March 2, 2007, 6:18am UTC](https://www.ruby-forum.com/t/redirection-problem-help-me/87391 "2007-03-02T06:18:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayendra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a87d85/32.png) [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Post date:** [March 2, 2007, 6:18am UTC](https://www.ruby-forum.com/t/redirection-problem-help-me/87391/1 "2007-03-02T06:18:16Z")

</div>

Hi  
i have a controler from which i has to redirect to two or many pages  
. i used redirect\_to . but it giving error as it considering the all  
redirection

---

<div class="post-metadata">

**Author:** ![vijayendra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a87d85/32.png) [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Post date:** [March 2, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/redirection-problem-help-me/87391/2 "2007-03-02T14:30:34Z")

</div>

vijayendra wrote:

> Hi  
> i have a controler from which i has to redirect to two or many pages  
> . i used redirect\_to . but it giving error as it considering the all  
> redirection

Are you saying “redirect\_to and return”?

You have to add the “and return” if you want execution of the method to  
stop at that point.

–Al Evans

---

<div class="post-metadata">

**Author:** ![vijayendra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a87d85/32.png) [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Post date:** [March 5, 2007, 8:34am UTC](https://www.ruby-forum.com/t/redirection-problem-help-me/87391/3 "2007-03-05T08:34:48Z")

</div>

Al Evans wrote:

> vijayendra wrote:
> 
> > Hi  
> > i have a controler from which i has to redirect to two or many pages  
> > . i used redirect\_to . but it giving error as it considering the all  
> > redirection
> 
> Are you saying “redirect\_to and return”?
> 
> You have to add the “and return” if you want execution of the method to  
> stop at that point.
> 
> –Al Evans

Thanks for the replay . i will try that
