put(*args, &block) public

Define a route that only recognizes HTTP PUT. For supported arguments, see Base#match.

Example:

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

Show source
Register or log in to add new notes.