# RedCloth in Rails documentation bug

**URL:** <https://www.ruby-forum.com/t/redcloth-in-rails-documentation-bug/62529>\
**Category:** Rails\
**Created:** [June 5, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/redcloth-in-rails-documentation-bug/62529 "2006-06-05T22:14:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wksmall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Post date:** [June 5, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/redcloth-in-rails-documentation-bug/62529/1 "2006-06-05T22:14:44Z")

</div>

It is trivial to get RedCloth to work in irb or script/console. But  
when I try to put  
code into a rails view or controller it complains that it doesn’t know  
what ‘RedCloth.new’  
is or how to ‘require “redcloth”’. How do you tell rails to use  
RedCloth? Do you put  
something in config/environment.rb ? Blah, blah, blah …

Oh, of course! (45 minutes later!) You restart the web server! This  
little “Gem” of  
advice should be added to the “Installing RedCloth” section at  
[http://whytheluckystiff.net/ruby/redcloth/](http://whytheluckystiff.net/ruby/redcloth/)

Feel free to secretly feel superior to me. Feel free to label me  
stupid. I cannot be the  
only one who stared at the screen and simply decided God was against me  
when Rails bitched  
at me.

Warren
