Plugins - on_idle
Add to favoritesOnIdle
This is a simple plugin that adds an "on idle" method available to use in views. It takes three arguments:
def on_idle(timeout, options, wakeoptions)
<%= on_idle(600, {:url => { :action => 'notify_idle' }},
{:url => { :action => 'notify_wake' }}) %>
timeout: the number of seconds before the user is considered ‘timed out’.
options: the action to perform when the user goes idle.
wakeoptions: what to do when the user ‘wakes up’.
