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@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
On 28-jun-2006, at 20:54, S?bastien Gruhier wrote:> 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.Are you sure you are sending the right content-type? Have you tried your URL in a browser? -- Julian ''Julik'' Tarkhanov please send all personal mail to me at julik.nl
content-type was fine, I just forgot to remove my authenticate filter on that function :) Works fine now thanks Seb Le 29 juin 06 ? 00:15, Julian ''Julik'' Tarkhanov a ?crit :> > On 28-jun-2006, at 20:54, S?bastien Gruhier wrote: > >> 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. > > Are you sure you are sending the right content-type? Have you tried > your URL in a browser? > -- > Julian ''Julik'' Tarkhanov > please send all personal mail to > me at julik.nl > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >