# #101 iCalendar and .ics format. Add events to calendar

- URL: https://superails.com/posts/ruby-on-rails-101-icalendar-and-ics-format-add-events-to-calendar
- Published: 2023-01-05
- Duration: 20:45
- Access: free
- Topics: calendar api, calendar event encoding, ical, calendar
- Playlists: Build a Calendar

Learn to create valid calendar events, that a user can download as an .ics file and add to his calendar!

Resources:
- text version of this video: https://blog.corsego.com/icalendar-ruby
- source code: https://github.com/corsego/101-icalendar/commit/9ff3a2aa99d32ab5a51e9b6ed158553f37b49dde
- gem icalendar: https://github.com/icalendar/icalendar
- icalendar documentation: https://www.rfc-editor.org/rfc/rfc5545

0:00 ics format
2:05 Boilerplate app
2:40 gem icalendar
5:50 download ics file
8:24 add location field
10:05 remove duplicates in calendar (uid, sequence) 
12:07 include urls
13:55 change ics filename
15:16 summary
15:35 refactoring
19:10 final demo

## Chapters

- 0:00 ics format
- 2:05 Boilerplate app
- 2:40 gem icalendar
- 5:50 download ics file
- 8:24 add location field
- 10:05 remove duplicates in calendar (uid, sequence)
- 12:07 include urls
- 13:55 change ics filename
- 15:16 summary
- 15:35 refactoring
- 19:10 final demo
