I am looking to implement PushMon on a number of sites using Ruby Padrino. I have the following piece of code from the PushMon site. Where would I place said code. I was thinking of adding it to the controller get for session/new but then again I could be completely wrong.
require 'net/http'
require 'uri'
urlString = 'http://pshmn.com/WwFnvY'
begin
Net::HTTP.get(URI.parse(urlString))
rescue
# log error
end