aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-20 10:55:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-20 10:55:08 +0000
commit8c40759b10ec6a2be2e12a9c160cb64085d490b4 (patch)
tree8e64fe1b07b07604d81601108a686211ae29b5b3
parent98349f37a31979b04f01d8be59d0db83620abf24 (diff)
downloadrails-8c40759b10ec6a2be2e12a9c160cb64085d490b4.tar.gz
rails-8c40759b10ec6a2be2e12a9c160cb64085d490b4.tar.bz2
rails-8c40759b10ec6a2be2e12a9c160cb64085d490b4.zip
Allow downloading of WSDL for an AWS controller as a proper file #674
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@710 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/configs/routes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/configs/routes.rb b/railties/configs/routes.rb
index 0ff18338d0..7bd368b108 100644
--- a/railties/configs/routes.rb
+++ b/railties/configs/routes.rb
@@ -5,6 +5,10 @@ ActionController::Routing::Routes.draw do |map|
# Here's a sample route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
+
+ # Allow downloading Web Service WSDL as a file with an extension
+ # instead of a file named 'wsdl'
+ map.connect ':controller/service.wsdl', :action => 'wsdl'
# Install the default route as the lowest priority.
map.connect ':controller/:action/:id'