diff --git a/README.rdoc b/README.rdoc index 009ae1d..13c5127 100644 --- a/README.rdoc +++ b/README.rdoc @@ -69,6 +69,8 @@ In the following file +config/routes.rb+ you can put this configuration wash_out :my_other_service end + mount WashoutBuilder::Engine => "/washout" + You can access the url +/washout+ and you will see a list with available services ( in our case there are only two : The RumbasController and MyOtherServiceController) with links to their documentation and where you can find the WSDL. If you want to access directly the hml documentation that was generated for RumbasController you can do that by accessing url +/rumbas/doc+ And the WSDL will be available at +/rumbas/wsdl+ diff --git a/lib/washout_builder.rb b/lib/washout_builder.rb index 7c6e498..0ebcfe9 100644 --- a/lib/washout_builder.rb +++ b/lib/washout_builder.rb @@ -18,9 +18,8 @@ class Mapper # Adds the routes for a SOAP endpoint at +controller+. def wash_out(controller_name, options={}) options.reverse_merge!(@scope) if @scope - - urldoc = options[:documentation_url].present? ? options[:documentation_url] : "doc" - match "#{controller_name}/#{urldoc}" => "#{controller_name}#_generate_doc", :via => :get, :format => false + + match "#{controller_name}/doc" => "#{controller_name}#_generate_doc", :via => :get, :format => false original_wash_out(controller_name, options)