Module: Ajax::Routes
- Defined in:
- lib/ajax/routes.rb
Class Method Summary collapse
-
.draw(map) ⇒ Object
In your
config/routes.rb
file call: Ajax::Routes.draw(map) Passing in the routingmap
object.
Class Method Details
.draw(map) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/ajax/routes.rb', line 11 def self.draw(map) if Ajax.app.rails?(3) && map.respond_to?(:match) map.match Ajax.framework_path, :to => 'ajax#framework', :as => 'ajax_framework' else map.ajax_framework Ajax.framework_path, :controller => 'ajax', :action => 'framework' end end |