From 1d7196b55272d5f900a3080387319686e395b981 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Fri, 20 Oct 2006 18:00:20 +0000 Subject: 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 --- actionpack/lib/action_controller/routing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3