I develop on a Mac, and have a redhat enterprise based server.
I'm trying to use the redcloth gem in my app. I can get it to work just fine on the Mac (localhost), but I cannot seem to get it to work on the server. I've driven myself nuts googling and re-installing things today and have made absolutely no progress.
A simple and repeatable example of the issue is comparing a script/console session between the mac and the server:
On the mac: JP-iMac:synergy jeffpritchard$ script/console Loading development environment (Rails 2.1.0)
require 'rubygems'
=> false
require 'redcloth'
=> true
RedCloth.new("fred").to_html
=> "<p>fred</p>"
quit
On the server: [foo@bar current]# script/console Loading development environment (Rails 2.1.0)
require 'rubygems'
=>
require 'redcloth'
=>
RedCloth.new("fred").to_html
NameError: uninitialized constant RedCloth::TextileDoc from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:275:in `load_missing_constant' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:467:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib/case_sensitive_require/../redcloth.rb:17:in `new' from (irb):3
This same sequence works just fine from an IRB session on both machines. Seems to be something kerbolixed in my rails setup on the server. Both machines are running rails 2.1.0. It looks like the "require" doesn't work right for some reason.
Before somebody asks, yes the redcloth gem is installed.
Anybody have any suggestions?
thanks, jp