Sha256: 83a74c057a1aae2c086680b91bb0d4d141a84c2d3cdcc4e40b2b414d8cd36aa7

Contents?: true

Size: 450 Bytes

Versions: 11

Compression:

Stored size: 450 Bytes

Contents

require 'ajax'

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.
    def self.draw(map)
      map.ajax_framework Ajax.framework_path, :controller => 'ajax', :action => 'framework'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ajax-1.0.8 lib/ajax/routes.rb
ajax-1.0.7 lib/ajax/routes.rb
ajax-1.0.6 lib/ajax/routes.rb
ajax-1.0.5 lib/ajax/routes.rb
ajax-1.0.4 lib/ajax/routes.rb
ajax-1.0.3 lib/ajax/routes.rb
ajax-1.0.2 lib/ajax/routes.rb
ajax-1.0.1 lib/ajax/routes.rb
ajax-0.1.7 lib/ajax/routes.rb
ajax-0.1.6 lib/ajax/routes.rb
ajax-0.1.5 lib/ajax/routes.rb