Hi
I’d like to create a webcal link to share a calendar with iCal like
it’s done in Basecamp for example.
I know how to create the file using icalendar ruby library and iCal
can open it, but if I send this file using an url like webcal://
localhost:3000/ical/1151495837
iCal says that data are not valid.
Any ideas?
Thanks.
PS here is my rb code
def ical_data
cal = Icalendar::Calendar.new
event = cal.event # This automatically adds the event to the
calendar
event.user_id = “[email protected]”
event.timestamp = DateTime.now
event.summary = “Meeting with the man.”
# We can output the calendars as strings to write to a file,
# network port, database etc.
cal_string = cal.to_ical
send_data cal_string
end