method

get

Importance_1
v8.1.1 - Show latest stable - 0 notes - Class: HttpHelpers
get(*path_or_actions, as: DEFAULT, to: nil, controller: nil, action: nil, on: nil, defaults: nil, constraints: nil, anchor: nil, format: nil, path: nil, internal: nil, **mapping, &block) public

Define a route that only recognizes HTTP GET. For supported arguments, see [match](rdoc-ref:Base#match)

get 'bacon', to: 'food#bacon'
Show source
Register or log in to add new notes.