lib/utopia/controller/base.rb
# Request relative redirect. Respond with a redirect to the given target.
Request relative redirect. Respond with a redirect to the given target.
Request relative redirect . Respond with a redirect to the given target .
def redirect!(target, status = 302)
				status = HTTP::Status.new(status, 300...400)
				location = target.to_s
				respond! [status.to_i, {HTTP::LOCATION => location}, [status.to_s]]
			end
def redirect! ( target , status = 302 ) status = HTTP :: Status . new ( status , 300 ... 400 ) location = target . to_s respond! [ status . to_i , { HTTP :: LOCATION => location } , [ status . to_s ] ] end
Request relative redirect.
Request relative redirect .
target
status