Method: ActionDispatch::Routing::Mapper#rest_resource
- Defined in:
- lib/rest_framework/routers.rb
#rest_resource(*names, **kwargs, &block) ⇒ Object
Public interface for creating singular RESTful resource routes.
101 102 103 104 105 |
# File 'lib/rest_framework/routers.rb', line 101 def rest_resource(*names, **kwargs, &block) names.each do |n| self._rest_resources(true, n, **kwargs, &block) end end |