Method: ActionDispatch::Routing::Mapper::HttpHelpers#get
- Defined in:
- actionpack/lib/action_dispatch/routing/mapper.rb
#get(*args, &block) ⇒ Object
Define a route that only recognizes HTTP GET. For supported arguments, see [match](Base#match)
get 'bacon', to: 'food#bacon'
732 733 734 |
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 732 def get(*args, &block) map_method(:get, args, &block) end |