How to use render & redirect_to together

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/.

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/\.

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 wrote:

On Dec 3, 2007 8:24 AM, Advait Bellur 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/.

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
-~----------~----~----~----~------~----~------~–~—