Sha256: 050dea334b2f9a5b9af3c75b4273b8210bd86bd9522f53206ce2b37150ec230d
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
# encoding: utf-8 class Caterpillar::XhrController < Caterpillar::ApplicationController def prototype # the page with the XHR triggers @javascripts = %w{prototype} render :action => 'time' end def jquery # the page with the XHR triggers @javascripts = %w{jquery-1.4.2.min} render :action => 'time' end def get_time send_data Time.now.to_s, :type => 'text/html' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caterpillar-1.4.4 | portlet_test_bench/controllers/caterpillar/xhr_controller.rb |