Module | Apotomo::Rails::ControllerMethods |
In: |
lib/apotomo/rails/controller_methods.rb
|
Returns the url to trigger a type event from +:source+, which is a non-optional parameter. Additional options will be appended to the query string.
Note that this method will use the framework‘s internal routing if available (e.g. url_for in Rails).
Example:
url_for_event(:paginate, :source => 'mouse', :page => 2) #=> http://apotomo.de/mouse/process_event_request?type=paginate&source=mouse&page=2
Renders the page updates through an iframe. Copied from responds_to_parent, see github.com/markcatley/responds_to_parent .