# How to use render & redirect\_to together

**URL:** <https://rubytalk.org/t/how-to-use-render-redirect-to-together/42703>\
**Category:** ruby-talk\
**Created:** [3 December 2007 13:24 UTC](https://rubytalk.org/t/how-to-use-render-redirect-to-together/42703 "2007-12-03T13:24:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Advait\_Bellur](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@Advait\_Bellur](https://rubytalk.org/u/Advait_Bellur)\
**Post date:** [3 December 2007 13:24 UTC](https://rubytalk.org/t/how-to-use-render-redirect-to-together/42703/1 "2007-12-03T13:24:32Z")

</div>

Hi,

I needed to know a way or method of using render and reditect\_to  
methods.  
At present using them both is giving me an error that both cant be used.

If not this an alternative approach would also help.

Thank You

Advait

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Jason\_R](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Jason\_R](https://rubytalk.org/u/Jason_R)\
**Post date:** [3 December 2007 13:37 UTC](https://rubytalk.org/t/how-to-use-render-redirect-to-together/42703/2 "2007-12-03T13:37:54Z")

</div>

What exactly are you trying to do and why?

You can't use render and redirect\_to at the same time. Either you're  
rendering a page, or you're going to another page.

Jason

> **···**
>
> On Dec 3, 2007 8:24 AM, Advait Bellur \<advait.bellur@yahoo.co.in\> wrote:
> 
> > Hi,
> > 
> > I needed to know a way or method of using render and reditect\_to  
> > methods.  
> > At present using them both is giving me an error that both cant be used.
> > 
> > If not this an alternative approach would also help.
> > 
> > Thank You
> > 
> > Advait  
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Jason\_Roelofs](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Jason\_Roelofs](https://rubytalk.org/u/Jason_Roelofs)\
**Post date:** [3 December 2007 13:39 UTC](https://rubytalk.org/t/how-to-use-render-redirect-to-together/42703/3 "2007-12-03T13:39:50Z")

</div>

Oh, and next time please use the Rails mailing list.  
Jason

> **···**
>
> On Dec 3, 2007 8:37 AM, Jason Roelofs [jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org](mailto:jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) wrote:
> 
> > On Dec 3, 2007 8:24 AM, Advait Bellur [advait.bellur-/E1597aS9LQxFYw1CcD5bw@public.gmane.org](mailto:advait.bellur-/E1597aS9LQxFYw1CcD5bw@public.gmane.org) wrote:
> > 
> > > Hi,
> > > 
> > > I needed to know a way or method of using render and reditect\_to  
> > > methods.  
> > > At present using them both is giving me an error that both cant be used.
> > > 
> > > If not this an alternative approach would also help.
> > > 
> > > Thank You
> > > 
> > > ## Advait
> > > 
> > > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > What exactly are you trying to do and why?
> > 
> > You can’t use render and redirect\_to at the same time. Either you’re  
> > rendering a page, or you’re going to another page.
> > 
> > Jason
> 
> –~–~---------~–~----~------------~-------~–~----~  
> You received this message because you are subscribed to the Google Groups “Ruby on Rails: Talk” group.  
> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org  
> To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org  
> For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en)  
> -~----------~----~----~----~------~----~------~–~—
