[Rails] webcal url
Sébastien Gruhier
seb at itseb.com
Wed Jun 28 18:54:51 GMT 2006
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 = "joe-bob at somewhere.net"
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060628/7e93a8e1/attachment.html
More information about the Rails
mailing list