#161 Import ICS Calendar events with Gem iCalendar

09/03/2024
calendar

I love building calendars!
ICS is the default format for a calendar file.
Today we'll learn to read an ICS file and import it into our app.

Recently 37signals released Import ICS events as a new feature in Hey Calendar.
You can do it too!

Episode source code: https://github.com/corsego/161-import-ics-calendar-events/commit/0e3704fc5728af60df6bc24f38062f46abfda4ba
Based on this blogpost: https://blog.corsego.com/import-ics-to-calendar

0:00 read the ICS format
2:00 iCalendar gem, parse ICS in rails console
4:24 Form to upload ICS file and save in database
10:00 Upload multiple ICS files
12:15 Write tests

0
Join the conversation
Sign in to access PRO lessons, access private repos, leave comments, create watch lists.
We collect your email address, name and username to create your account. We do not share your email address with anyone else.