Method: Orbit::Controller.create_route
- Defined in:
- lib/orbit/controller.rb
.create_route(verb, action, &handler) ⇒ Object
96 97 98 99 100 101 102 |
# File 'lib/orbit/controller.rb', line 96 def self.create_route(verb, action, &handler) method_name = create_method(verb, action, &handler) full_path = "#{@base_path}/#{action}" Orbit::Router.add(verb, full_path, self, method_name) end |