views:

85

answers:

1

I have installed RedCloth, by using the devkit. Using gem install RedCloth.

If I use plain irb, then require 'RedCloth' works fine.

But if I use rails console and do require 'RedCloth', it says it can't find file to load.

Please help.

Rails 3.0.0 RedCloth 4.2.3

+2  A: 

Is RedClotch included in your Gemfile, and have you run bundle install since updating your Gemfile?

I don't believe Rails 3 will allow you to include gems that are not in the Gemfile. I'm not quite sure about the inner workings of bundler, but I believe the Rails app considers your Gemfile it's "only source" for loading gems.

Robbie
what is a gem file? and where is it located?
Ram
In a default Rails 3 app, it'll be at the top level directory, and it'll be named Gemfile (no extension) -- you can open it with any text editor, and subsequently run `bundle install` to parse/process that Gemfile
Robbie
Thanks for the help Robbie.
Ram