I made path in rails which generate .ics file for i calendar. How can i test that link from local server Here is how i generate .ics file on path(/api/calendar/):
send_data cal.to_ical, filename: file_name, type: "text/calendar; charset=utf-8", disposition: 'attachment'
This is what I do
To get the file use curl (on Linux, macOS or Windows 10)
You will see
You can save the ics file
Try opening it in a calendar app like Mozilla Thunderbird, Apple Calendar or Outlook or import into Google Calendar or Outlook 365