I’m learning RoR and I have a problem with RedCloth.
I have installed it by gem install RedCloth and I have it in my path.
But when I require it, it is not found.
irb(main):001:0> require ‘rubygems’
=> nil
irb(main):002:0> require ‘redcloth’
LoadError: no such file to load – redcloth
from
/usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in require' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:inrequire’
from
/usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in load_dependency' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:innew_constants_in’
from
/usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in load_dependency' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:inrequire’
from (irb):2
LoadError: no such file to load – redcloth
/usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/
dependencies.rb:596:in
Thanks
If this is in a rails app, then don’t forget to add it to your bundle