Skip to content

Commit

Permalink
Add missing @, fix indents. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanvlviv committed Oct 10, 2016
1 parent a50cd3e commit e7f5457
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions actionpack/lib/action_controller/metal/redirecting.rb
Expand Up @@ -24,10 +24,10 @@ module Redirecting
# === Examples:
#
# redirect_to action: "show", id: 5
# redirect_to post
# redirect_to @post
# redirect_to "http://www.rubyonrails.org"
# redirect_to "/images/screenshot.jpg"
# redirect_to articles_url
# redirect_to posts_url
# redirect_to proc { edit_post_url(@post) }
#
# The redirection happens as a "302 Found" header unless otherwise specified using the <tt>:status</tt> option:
Expand Down Expand Up @@ -77,11 +77,11 @@ def redirect_to(options = {}, response_status = {}) #:doc:
# is missing this header, the <tt>fallback_location</tt> will be used.
#
# redirect_back fallback_location: { action: "show", id: 5 }
# redirect_back fallback_location: post
# redirect_back fallback_location: @post
# redirect_back fallback_location: "http://www.rubyonrails.org"
# redirect_back fallback_location: "/images/screenshot.jpg"
# redirect_back fallback_location: articles_url
# redirect_back fallback_location: proc { edit_post_url(@post) }
# redirect_back fallback_location: "/images/screenshot.jpg"
# redirect_back fallback_location: posts_url
# redirect_back fallback_location: proc { edit_post_url(@post) }
#
# All options that can be passed to <tt>redirect_to</tt> are accepted as
# options and the behavior is identical.
Expand Down

0 comments on commit e7f5457

Please sign in to comment.