aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/routing.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-10-20 18:00:20 +0000
committerRick Olson <technoweenie@gmail.com>2006-10-20 18:00:20 +0000
commit1d7196b55272d5f900a3080387319686e395b981 (patch)
tree3bb2d99d754ba3b9fbe9d984432c157dc37526f5 /actionpack/lib/action_controller/routing.rb
parent351a224d90d5d485cb30743f1266ec2624ae7853 (diff)
downloadrails-1d7196b55272d5f900a3080387319686e395b981.tar.gz
rails-1d7196b55272d5f900a3080387319686e395b981.tar.bz2
rails-1d7196b55272d5f900a3080387319686e395b981.zip
Force *_url named routes to show the host in ActionView [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/routing.rb')
-rw-r--r--actionpack/lib/action_controller/routing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb
index 2f24bf4c34..35eec734d3 100644
--- a/actionpack/lib/action_controller/routing.rb
+++ b/actionpack/lib/action_controller/routing.rb
@@ -1039,7 +1039,7 @@ module ActionController
end
def define_named_route_methods(name, route)
- {:url => {}, :path => {:only_path => true}}.each do |kind, opts|
+ {:url => {:only_path => false}, :path => {:only_path => true}}.each do |kind, opts|
hash = route.defaults.merge(:use_route => name).merge(opts)
define_hash_access route, name, kind, hash
define_url_helper route, name, kind, hash