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?

Have you required the gem in your environment.rb?

John Kopanas 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 Kopanas
john@kopanas.com

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.