From 887e67c80e12308467526d731e74fafef9f07ac9 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Mon, 13 Jun 2005 02:58:44 +0000 Subject: Fix moduled controller URLs in WSDL, and add unit test to verify the generated URL. See ticket #1428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_web_service/dispatcher/action_controller_dispatcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionwebservice/lib/action_web_service/dispatcher') diff --git a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb index 13a6fa55d3..21e3ccedbf 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb @@ -167,7 +167,7 @@ module ActionWebService # :nodoc: host = request.env['HTTP_HOST'] || request.env['SERVER_NAME'] || 'localhost' relative_url_root = request.relative_url_root scheme = request.ssl? ? 'https' : 'http' - '%s://%s%s/%s/' % [scheme, host, relative_url_root, controller_name] + '%s://%s%s/%s/' % [scheme, host, relative_url_root, self.class.controller_path] end def to_wsdl -- cgit v1.2.3