diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-14 07:18:20 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-14 07:18:20 -0800 |
commit | 068237d02f2ffa1cae6f83ab2dedf821e5455ee5 (patch) | |
tree | 585fa12b12a08e110df3b171148440f12f26679e | |
parent | 068580d4456e881e568de4a4d20a401e87b6c9e1 (diff) | |
parent | fd76b9d5469c3309ce4308fda5bc9e95cbc457f8 (diff) | |
download | rails-068237d02f2ffa1cae6f83ab2dedf821e5455ee5.tar.gz rails-068237d02f2ffa1cae6f83ab2dedf821e5455ee5.tar.bz2 rails-068237d02f2ffa1cae6f83ab2dedf821e5455ee5.zip |
Merge pull request #13324 from fphilipe/fix-syntax-error-in-example
Fix syntax error in redirect_to example
-rw-r--r-- | actionpack/lib/action_controller/metal/redirecting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index ab14a61b97..2812038938 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -58,7 +58,7 @@ module ActionController # 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. |