iCalendar has a defined MIME type (text/calendar), so something like this should work, provided the browser has the right association set for that type:
response.content_type = 'text/calendar'
render :text => @event.to_ical
I don't know of any library that will automatically implement that to_ical method, and I'm far too lazy to look, but the iCalendar format seems like it would be really simple to implement.
--Phil
--- On Thu, 12/24/09, Michael Gerstenblatt <mgerst...@gmail.com> wrote:
> --
>
> You received this message because you are subscribed to the
> Boston Ruby Group mailing list
>
> To post to this group, send email to
> boston-r...@googlegroups.com
>
> To unsubscribe from this group, send email to
> boston-rubygro...@googlegroups.com
>
> For more options, visit this group at http://groups.google.com/group/boston-rubygroup
-- Pascal Rettig Cykod.com pas...@cykod.com Ph# 857-363-0597 |