match(*path_or_actions, as: DEFAULT, via: nil, to: nil, controller: nil, action: nil, on: nil, defaults: nil, constraints: nil, anchor: nil, format: nil, path: nil, internal: nil, **mapping, &block)
public

Matches a URL pattern to one or more routes. For more information, see [match](rdoc-ref:Base#match).

match 'path', to: 'controller#action', via: :post
match 'otherpath', on: :member, via: :get