views:

40

answers:

1

I keep getting this error for different gems, the most recent is acts_as_reportable:

no such file to load -- acts_as_reportable

However, I have the following line in my environment.rb:

config.gem 'acts_as_reportable'

And I also ran the following:

>gem install acts_as_reportable

It it output:

>gem install acts_as_reportable
Successfully installed acts_as_reportable-1.1.1
1 gem installed
Installing ri documentation for acts_as_reportable-1.1.1...
Installing RDoc documentation for acts_as_reportable-1.1.1...

What do I need to do?

A: 
config.gem 'acts_as_reportable', :lib => 'ruport/acts_as_reportable'

Found the correct require in the Ruport documentation here. Explanation of the :lib option in the Rails API here.

Awgy
hmm...even though acts_as_reportable is on github, it's not standalone, it needs to be a lib. Hmm...wouldn't been nice if the ruport site explained that...let's check it out!
Angela
rats, didn't work
Angela
@Angela How about `config.gem 'acts_as_reportable', :lib => 'ruport/acts_as_reportable'`?
Awgy
I just installed it and the above worked for me.
Awgy
Hmm...didn't work, I had to remove it and then use a require 'ruport/acts_as_reportable" which is less than desirable....let me try again
Angela
ah now it works...thanks!
Angela