module BivouacSample::Views def periodically_call html do head do javascript_include_tag :defaults stylesheet_link_tag "autocomplete" end body do h1 "periodically_call_remote" div( :id => "process-list", :style => "background-color: #eee;") do; end periodically_call_remote( :update => 'process-list', :url => R(PeriodicallyCall), :frequency => 2 ) end end end end