In my invitation file. All I see is a calendar object #<Icalendar::Calendar:0xb299a54> I tried to implement this link , but I get the same .ics file with the object. I'm new to ruby. Can someone please tell me the best tutorial on sending calendar invitations for Google Calendar, Outlook, ical. Here's the code for now.
#<Icalendar::Calendar:0xb299a54>
class MeetingNotification < ActionMailer::Base # include Icalendar def meeting_request_with_calendar mail(:to => " ashi_12@gmail.com ", :subject => "iCalendar", :from => " tester@gmail.com ") do |format| format.ics { ical = Icalendar::Calendar.new e = Icalendar::Event.new e.start = DateTime.now.utc e.start.icalendar_tzid="UTC" # set timezone as "UTC" e.end = (DateTime.now + 1.day).utc e.end.icalendar_tzid="UTC" e.organizer " tester@gmail.com " e.uid "MeetingRequest" e.summary "Scrum Meeting" e.description <<-EOF Venue: Office Date: 16 August 2013 Time: 10 am EOF ical.add_event(e) ical.publish ical.to_ical render :text => ical, :layout => false } end end
Maybe I'm too late to answer. I had the same problem. I fixed it by calling to_ical when using the render method. try it
to_ical
render :text => ical.to_ical
Source: https://habr.com/ru/post/1495892/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1495886/how-to-allow-different-keyspaces-to-use-different-partitioners-in-cassandra&usg=ALkJrhhkzbA8lseyChFdjBO2T8SLbiBadwcx_freeze - as a debugging application - pythonInternet Explorer throws an IIS 500 error while trying to access report services from a web application - c #How to use .mdw file in Access 2010 - ms-accessPush Notifications / Messaging in HTML5 web application - javascriptID declaration error when adding Core Data to an existing Xcode project - ioshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1495894/fosoauthserverbundle-generate-manually-an-access-token&usg=ALkJrhhewD3a-U4AUIWTGgD3wJsa14k7QAPython syntax highlighting Vim doxter type in python - pythonwhy it is impossible to add Int and floating point number in haskell - haskellHow to rewrite a URL without leaving the current page in C #? - c #All Articles