Double Render Error

Is there a way to suppress the Double Render Error:

“ActionController::DoubleRenderError.
Render and/or redirect were called multiple times in this action. Please
note that you may only call render OR redirect, and only once per
action.”

Ideally, I would like the last redirect/render called to be the one that
is actually used when the page is sent to the browser.

On Friday 24 Feb 2006 18:44, Lindsay B. wrote:

Ideally, I would like the last redirect/render called to be the one that
is actually used when the page is sent to the browser.

Just put a “return” statement straight after them, and your problems
will
vanish. :wink:

See: http://jamis.jamisbuck.org/articles/2005/07/08/rails-tip-of-the-day

~Dave

Dave S.
Rent-A-Monkey Website Development

PGP Key: http://www.rentamonkey.com/pgpkey.asc

Thanks! The tip-of-the-day makes a lot of sense!