Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13324 from fphilipe/fix-syntax-error-in-example

Fix syntax error in redirect_to example
  • Loading branch information...
commit 068237d02f2ffa1cae6f83ab2dedf821e5455ee5 2 parents 068580d + fd76b9d
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/metal/redirecting.rb
View
2  actionpack/lib/action_controller/metal/redirecting.rb
@@ -58,7 +58,7 @@ module Redirecting
# redirect_to post_url(@post), alert: "Watch it, mister!"
# redirect_to post_url(@post), status: :found, notice: "Pay attention to the road"
# redirect_to post_url(@post), status: 301, flash: { updated_post_id: @post.id }
- # redirect_to { action: 'atom' }, alert: "Something serious happened"
+ # redirect_to({ action: 'atom' }, alert: "Something serious happened")
#
# When using <tt>redirect_to :back</tt>, if there is no referrer, ActionController::RedirectBackError will be raised. You may specify some fallback
# behavior for this case by rescuing ActionController::RedirectBackError.
Please sign in to comment.
Something went wrong with that request. Please try again.