diff --git a/app/views/calendars/show.ics.erb b/app/views/calendars/show.ics.erb index bc9c583..30654a4 100644 --- a/app/views/calendars/show.ics.erb +++ b/app/views/calendars/show.ics.erb @@ -1,4 +1,3 @@ - BEGIN:VCALENDAR VERSION:2.0 PRODID:http://www.example.com/calendarapplication/ @@ -7,4 +6,4 @@ X-WR-TIMEZONE:Vienna <% @calendar.calentries.each do |entry| %> <%= render entry %> <% end %> -END:VCALENDAR +END:VCALENDAR \ No newline at end of file diff --git a/app/views/calentries/_calentry.ics.erb b/app/views/calentries/_calentry.ics.erb index b70b0ae..3625512 100644 --- a/app/views/calentries/_calentry.ics.erb +++ b/app/views/calentries/_calentry.ics.erb @@ -8,4 +8,4 @@ CLASS:PUBLIC DTSTART:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %> DTEND:<%= calentry.ende.strftime "%Y%m%dT%H%M%S" %> DTSTAMP:<%= calentry.start.strftime "%Y%m%dT%H%M%S" %> -END:VEVENT +END:VEVENT \ No newline at end of file