Missing these required gems: RedCloth - config.gem Ruby on Rails error

Posted on 07 February 2010

RedCloth is one of those gems that is not consistently named and has caused me problems in the past.

This time even though I had specified it's requirement in my environment.rb file inside the Rails::Initializer block I was still getting the 'Missing these required gems' error.

I had frozen the gem into the vendor directory so obviously it wasn't being found by Rails.

Turns out all I needed to do was add a lib parameter to the config.gem line...

config.gem 'RedCloth', :version => '>=x.x.x', :lib => 'redcloth'

Comments left...

  • Unfortunately that didn’t help me :( .

    lkanan at 08 Mar 10 at 00:58

Got something to say?