=================================================================== --- recognition_optimisation.rb 2008-11-18 18:55:03 UTC (rev 6888) +++ recognition_optimisation.rb 2008-11-18 19:01:31 UTC (rev 6889) @@ -57,7 +57,7 @@ result = recognize_optimized(path, environment) and return result # Route was not recognized. Try to find out why (maybe wrong verb). - allows = HTTP_METHODS.select { |verb| routes.find { |r| r.recognize(path, :method => verb) } } + allows = HTTP_METHODS.select { |verb| routes.find { |r| r.recognize(path, environment.merge(:method => verb)) } } if environment[:method] && !HTTP_METHODS.include?(environment[:method]) raise NotImplemented.new(*allows)