Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ICS template Rails plugin

branch: master
README.rdoc

ICS Builder

Requirements

ICS Builder requires Rails v2.1.

It also requires the icalendar gem.

$ sudo gem install icalendar

Example

Add events to your calendar file in the template.

@events.each do |event|
  calendar.event do
    dtstart(event.start_time)
    dtend(event.end_time)
    summary(event.title)
    description(event.description)
  end
end

You can set the default filename for that a browser will use for 'save as' by setting @filename instance variable in your controller's action method e.g.

@filename = 'events.ics'

Copyright © 2008 Russ Smith, released under the MIT license

Something went wrong with that request. Please try again.