Class HeartbeatController
In: app/controllers/heartbeat_controller.rb
Parent: ApplicationController

Methods

index  

Public Instance methods

[Source]

    # File app/controllers/heartbeat_controller.rb, line 3
 3:   def index
 4:     # this is meant to be used in conjunction with 
 5:     # /script/shell/check_heartbeat.sh
 6:     #
 7:     # by providing the time in seconds from Unix epoch
 8:     # we can compute the time to respond.
 9:     heartbeat = Time.now.to_i
10:     render :text => heartbeat, :content_type => 'text/plain'
11:   end

[Validate]