Define a route that only recognizes HTTP GET. For supported arguments, see match[rdoc-ref:Base#match]
get 'bacon', to: 'food#bacon'
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 650 def get(*args, &block) map_method(:get, args, &block) end
As of July, 2015, the v4.2.1 doc says “see match[rdoc-ref:Base#match]” without a URL. I think you want this one: http://apidock.com/rails/ActionDispatch/Routing/Mapper/Base/match