# RedCloth 4.2.1 with Rails 2.3.2 -- something's broken

**URL:** <https://www.ruby-forum.com/t/redcloth-4-2-1-with-rails-2-3-2-somethings-broken/171149>\
**Category:** Rails\
**Created:** [June 27, 2009, 1:36am UTC](https://www.ruby-forum.com/t/redcloth-4-2-1-with-rails-2-3-2-somethings-broken/171149 "2009-06-27T01:36:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adambeazley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Post date:** [June 27, 2009, 1:36am UTC](https://www.ruby-forum.com/t/redcloth-4-2-1-with-rails-2-3-2-somethings-broken/171149/1 "2009-06-27T01:36:42Z")

</div>

I’m having a hell of a time getting RedCloth working. Here’s my system  
info:

gem list rails

\*\*\* LOCAL GEMS \*\*\*

rails (2.3.2, 1.2.6, 1.2.3)

gem list RedCloth

\*\*\* LOCAL GEMS \*\*\*

RedCloth (4.2.1, 3.0.4)

admanb$ RedCloth -v  
RedCloth 4.2.1

admanb$ rails -v  
Rails 2.3.2

* * *

Run the app and I get:

ActionView::TemplateError (uninitialized constant  
ActionView::Helpers::TextHelper::RedCloth) on line #3 of app/views/  
posts/\_post.html.erb:  
1:

## \<%=h post.title %\>
  
2: 
  
3: \<%= textilize(h post.body) %\>  
4: \<%= link\_to ‘Show’, post %\>  
5: \<%= link\_to ‘Edit’, edit\_post\_path(post) %\>  
6: \<%= link\_to ‘Destroy’, post, :confirm =\> ‘Are you  
sure?’, :method =\> :delete %\>

Add

config.gem(“RedCloth”)

to environment.rb and I get:

admanb$ script/server  
=\> Booting WEBrick  
=\> Rails 2.3.2 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
/Users/admanb/.gem/ruby/1.8/gems/RedCloth-4.2.1/lib/  
redcloth\_scan.bundle: [BUG] Bus Error  
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.3.0]

Anyone have any idea what’s going on?

---

<div class="post-metadata">

**Author:** ![adambeazley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Post date:** [June 27, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/redcloth-4-2-1-with-rails-2-3-2-somethings-broken/171149/2 "2009-06-27T20:48:04Z")

</div>

The error that you’re getting means that RedCloth isn’t compiled - try  
installing it again, and look out for error messages. You’ll need to  
have the Xcode tools installed as well.

–Matt J.
