Sha256: 7a8c626d617033691604c5914c2872b5bc6159ec3c46b24fdeefdc4d1818cd3f
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
module Ajax module Routes # In your <tt>config/routes.rb</tt> file call: # Ajax::Routes.draw(map) # Passing in the routing <tt>map</tt> object. # # Adds an <tt>ajax_framework_path</tt> pointing to <tt>/ajax/framework</tt> def self.draw(map) map.ajax_framework "/ajax/framework", :controller => 'ajax', :action => 'framework' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ajax-0.1.4 | lib/ajax/routes.rb |
ajax-0.1.3 | lib/ajax/routes.rb |
ajax-0.1.2 | lib/ajax/routes.rb |