instance method
get
Ruby on Rails 8.0.4
Since v3.0.20Signature
get(*args, &block)
Define a route that only recognizes HTTP GET. For supported arguments, see match
get 'bacon', to: 'food#bacon'
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 710
def get(*args, &block)
map_method(:get, args, &block)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 710
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::HttpHelpers