How to inetgrate an addressbook/calander

I looked for a plugin which would facilitate adding contact and calendar
information in my Rails application. I couldn’t find any.
Does anyone know of anything or how to go about this instead of writing
from scratch?
Another possible angle: to interface to Google mail, contacts and
calendar. Any hepful suggestions?