#37 ✓invalid
Dennis Theisen

RedCloth 4.0.2 does not initialize in Rails 2.1

Reported by Dennis Theisen | August 15th, 2008 @ 11:30 AM | in 4.0.3

It seems that the fix for case-insensitive loading of RedCloth does not work.

I have a Rails 2.1.0 app, and when I try to require RedCloth like this in my environment.rb:

config.gem 'RedCloth'

It throws the following exception after running the server:

/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:275:in load_missing_constant': uninitialized constant RedCloth::TextileDoc (NameError)

from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:467:in `const_missing'
from /Library/Ruby/Gems/1.8/gems/RedCloth-4.0.2/lib/RedCloth.rb:17:in `new'
from /Users/soleone/workspace/rails/rubyflow/config/environment.rb:68

But when I change the require statement in environment.rb to:

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

Then it works fine.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins