method

performed?

performed?()
public

Tests if render or redirect has already happened.

1Note

#performed? is an option when getting ActionController::DoubleRenderError

suzuki ยท Oct 26, 2012

You can avoid ActionController::DoubleRenderError (Can only render or redirect once per action) with #performed?

==== For example def index redirect_to not_found_path unless authenticated? render :action => 'update' unless performed? end