get(*args, &block) public

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

Example:

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

Show source
Register or log in to add new notes.
July 6, 2015
0 thanks

For supported arguments, see see match

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