Methods
Instance Public methods
connect(*args, &block) Link
Define a route that recognizes HTTP CONNECT (and GET) requests. More specifically this recognizes HTTP/1 protocol upgrade requests and HTTP/2 CONNECT requests with the protocol pseudo header. For supported arguments, see match
connect 'live', to: 'live#index'
delete(*args, &block) Link
Define a route that only recognizes HTTP DELETE. For supported arguments, see match
delete 'broccoli', to: 'food#broccoli'
get(*args, &block) Link
Define a route that only recognizes HTTP GET. For supported arguments, see match
get 'bacon', to: 'food#bacon'
options(*args, &block) Link
Define a route that only recognizes HTTP OPTIONS. For supported arguments, see match
options 'carrots', to: 'food#carrots'
patch(*args, &block) Link
Define a route that only recognizes HTTP PATCH. For supported arguments, see match
patch 'bacon', to: 'food#bacon'