Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/divert.rb

Instance Method Summary collapse

Instance Method Details

#divert_with(controller) ⇒ Object



26
27
28
29
# File 'lib/divert.rb', line 26

def divert_with controller
  get ':action' => controller.to_s
  get '*path' => "#{controller}#action_missing", :format => false
end