0

I have installed the caldav-icloud gem. Then I've required it in my environment.rb

require "caldav-icloud"

But if I do rails s I get this error:

/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- caldav-icloud (LoadError)

How can I solve it? Thanks

Holger Just
  • 52,918
  • 14
  • 115
  • 123
Boris Kuzevanov
  • 1,232
  • 1
  • 12
  • 21
  • When asking questions in Stack Overflow, please avoid text speak like "smth" and try to stick to proper punctuation, grammar and formatting. It makes your question easier to read, and thus makes them more likely to get answers helping you and others. – Holger Just Mar 02 '16 at 16:09

1 Answers1

0

To make any gem available to your Rails app, you have to add it to the Gemfile like this:

gem "caldav-icloud"

It is not enough to just install it.

This answer goes into a bit more detail what bundler and the Gemfile do and why this is required.

Community
  • 1
  • 1
Holger Just
  • 52,918
  • 14
  • 115
  • 123