Webcal/WebDev integration in ruby


I am trying to provide a webcal link to my registered user like below


in a Ruby on Rails app so he can load the event entries in his calender application (Outlook, Ical).

How should I go about creating my own Webcal URL? What are all the steps I have to follow?