method

match

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Resources

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

These similar methods exist in v7.1.3.2:

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.