Webcal/WebDev integration in ruby

Hi,

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

webcal://www.domain.com/ical/b.php?uid=13301632&key=asdgagaweg

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?