
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
-
-
Jason Garber August 18th, 2008 @ 09:18 AM
- State changed from new to invalid
Yes, it's a duplicate.
-
Jason Garber August 18th, 2008 @ 09:20 AM
Sorry, I should have resolved this one since it was filed first. In any case, the problem is solved in edge.
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.
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