method
redirect_to
v3.0.9 -
Show latest stable
-
0 notes -
Class: ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods
redirect_to(location)
public
Redirects the browser to the given location using JavaScript, in the same form as url_for.
Examples:
# Generates: window.location.href = "/mycontroller"; page.redirect_to(:action => 'index') # Generates: window.location.href = "/account/signup"; page.redirect_to(:controller => 'account', :action => 'signup')


