get(*args, &block)
public

Define a route that only recognizes HTTP GET. For supported arguments, see Base#match.

Example:

get ‘bacon’, :to => ‘food#bacon’

1Note

For supported arguments, see see match

pschmitt · Jul 6, 2015

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