how to use render & redirect_to together

A

Advait Bellur

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
 
J

Jason Roelofs

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

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
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
 
J

Jason Roelofs

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,271
Messages
2,571,361
Members
48,043
Latest member
BartEaster

Latest Threads

Top