Displaying 1 result from an estimated 1 matches for "aim_signed_on".
2006 Feb 06
1
Check, and display, AIM status on rails page
...9;'s just some simple helpers to show AIM status on a webpage.
I searched before coding it, and didn''t find anything similar.
Maybe that''s because it was so simple :)
These methods belong in a helper (such as app/helpers/application_helper.rb)
# begin AIM helper methods
def aim_signed_on(screen_name)
require ''net/http''
host = "big.oscar.aol.com"
path = "/#{screen_name}?on_url=online&off_url=offline"
return true if Net::HTTP.get_response(host, path).header[''location'']
== "online"
end
def display_aim_stat...