Question About Using A Gem In Rails

I installed a gem called: Contacts

From the console this works:

Contacts.new(:hotmail, “asdasd”, “asdasd”)"

But from the controller I get “uninitialized constant
FriendFindersController::Contacts” when I try to load the page? Same
thing
if I put the call to Contacts in the model.

Anyone have any ideas?


John K.
[email protected]

Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas

Have you required the gem in your environment.rb?
On Mon, Mar 3, 2008 at 1:19 PM, John K. [email protected] wrote:

Anyone have any ideas?


John K.
[email protected]

Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas


Henry
http://www.henrywagner.org/

John K. wrote:

I installed a gem called: Contacts

From the console this works:

Contacts.new(:hotmail, “asdasd”, “asdasd”)"

But from the controller I get “uninitialized constant
FriendFindersController::Contacts” when I try to load the page? Same
thing
if I put the call to Contacts in the model.

Anyone have any ideas?


John K.
[email protected]

Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas

Probably, you just need to require the gem in your environment.rb file
and restart your server.