开发者

ruby on rails gem error - No such file to load

I am trying to use the koala gem per these instructions: https://github.com/arsduo/koala/wiki

I did a ge开发者_如何学JAVAm install koala. I see the gem in the list of installed gems.

The instructions say to add require 'rubygems' require 'koala'

It doesn't say where. I tried it to add the lines to the beginning of one of my controllers. Then I also tried it in the initializer file: C:\Documents and Settings\mtariq\blog\config\initializers\koala.rb

I always get the same error: no such file to load -- koala

I installed the gem.. so what 'file' is it trying to load?

Any help would be appreciated. I know I must be doing something stupid but can't find any clues.

Mariam


Assuming you are running rails 3, just add the koala gem to your Gemfile, then run 'bundle install'. No need to require any library.

# Gemfile
gem 'koala'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜