I’m relatively new to Ruby on Rails. I need to use an iCalendar event in my web app.
First, I installed the iCalendar gem as below:
gem install icalendar
I then ran the gem list command, and it indicated the gem was installed. However, I can’t actually use the gem anywhere. If I do:
event = Icalendar::Event.new
I get the error that iCalendar is an uninitialized constant.
If I try to include iCalendar within a class as below:
require 'icalendar'
I get the error:
MissingSourceFile: no such file to load -- icalendar
Any suggestions?
Does the path to ruby on top of
/usr/bin/gemmatch the output ofwhich ruby? If not, make sure they match or give the explicit path to the one in/usr/bin/gem.