match method should not be used for routes; instead, a specific HTTP method should be used

This commit is contained in:
Dan Gebhardt 2012-09-20 21:17:07 -04:00
parent b706244122
commit 281b45ad2a

View File

@ -21,8 +21,8 @@ module TestHelper
Routes = ActionDispatch::Routing::RouteSet.new Routes = ActionDispatch::Routing::RouteSet.new
Routes.draw do Routes.draw do
resource :hypermedia resource :hypermedia
match ':controller(/:action(/:id))' get ':controller(/:action(/:id))'
match ':controller(/:action)' get ':controller(/:action)'
end end
ActionController::Base.send :include, Routes.url_helpers ActionController::Base.send :include, Routes.url_helpers