aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/redirecting.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/metal/redirecting.rb')
-rw-r--r--actionpack/lib/action_controller/metal/redirecting.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb
index 25e4e18493..de40ea77b1 100644
--- a/actionpack/lib/action_controller/metal/redirecting.rb
+++ b/actionpack/lib/action_controller/metal/redirecting.rb
@@ -12,7 +12,6 @@ module ActionController
include AbstractController::Logger
include ActionController::RackDelegation
- include ActionController::UrlFor
# Redirects the browser to the target specified in +options+. This parameter can take one of three forms:
#
@@ -84,6 +83,9 @@ module ActionController
raise RedirectBackError unless refer = request.headers["Referer"]
refer
else
+ # ROUTES TODO: Figure out how to rescue from a no method error
+ # This is needed only if you wire up a controller yourself, and
+ # this not working would be baffling without a better error
url_for(options)
end.gsub(/[\r\n]/, '')
end