method

match

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: Resources
match(path, *rest, &block) public

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

match 'path' => 'controller#action', via: patch
match 'path', to: 'controller#action', via: :post
match 'path', 'otherpath', on: :member, via: :get
Show source
Register or log in to add new notes.