search for: display_aim_status

Displaying 1 result from an estimated 1 matches for "display_aim_status".

2006 Feb 06
1
Check, and display, AIM status on rails page
...ef 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_status(screen_name) if aim_signed_on(screen_name) screen_name + " is currently signed on AOL Instant Messenger" else screen_name + " is currently signed off of AOL Instant Messenger" end end # end AIM helper Then just call it from a view with <%= display_aim_status(&q...