Sha256: 35eb570424b6b784c649c6c25481e0b03cab27a68cb308f68e24015bac10c37f
Contents?: true
Size: 669 Bytes
Versions: 8
Compression:
Stored size: 669 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_path</tt> # which is <tt>/ajax/framework</tt> by default. # # Only applies when installed as a gem in Rails 2 or less. 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 end end
Version data entries
8 entries across 8 versions & 1 rubygems