# RedCloth error

**URL:** <https://www.ruby-forum.com/t/redcloth-error/178355>\
**Category:** Rails\
**Created:** [November 3, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/redcloth-error/178355 "2009-11-03T12:55:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [November 3, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/redcloth-error/178355/1 "2009-11-03T12:55:28Z")

</div>

Hi All

I have installed RedCloth 4.2.2 & 4.2.1.  
When I tried to create new post in forum(of my application) it gives me  
error like " uninitialized constant Rails::Plugin::RedCloth".

In local it runs without any error… but when I tried to run the same  
code on server it gives me that error…

Any idea???

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [November 3, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/redcloth-error/178355/2 "2009-11-03T15:48:41Z")

</div>

add in enviroment.rb  
config.gem “RedCloth”

On Tue, Nov 3, 2009 at 6:55 PM, Smit S.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> ## Any idea???
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–

Senior Rails Developer  
Anton Effendi - Wu You Duan

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [November 4, 2009, 4:49am UTC](https://www.ruby-forum.com/t/redcloth-error/178355/3 "2009-11-04T04:49:54Z")

</div>

anton effendi wrote:

> add in enviroment.rb  
> config.gem “RedCloth”
> 
> On Tue, Nov 3, 2009 at 6:55 PM, Smit S.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:
> 
> > ## Any idea???
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –
> 
> Senior Rails Developer  
> Anton Effendi - Wu You Duan

Thanks for your reply.

I have written the code that you have told. I have also tried following  
code.  
 → config.gem “RedCloth”  
 → config.gem “RedCloth”, :lib =\> “redcloth”, :version =\> “4.2.2”

But I still get the error as:  
" NameError (uninitialized constant Rails::Plugin::RedCloth) "

I have installed gem RedCloth 4.2.2 & 4.2.1

Help me out of this…

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [November 4, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/redcloth-error/178355/4 "2009-11-04T15:44:12Z")

</div>

hmmm…  
have u tried copy that gem into vendor/gems?

On Wed, Nov 4, 2009 at 10:49 AM, Smit S.  
\<removed\_email\_address@domain.invalid

> wrote:

> > > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).  
> > > Thanks for your reply.
> 
> ## Help me out of this…
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–

Senior Rails Developer  
Anton Effendi - Wu You Duan

---

<div class="post-metadata">

**Author:** ![smit\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/87869e/32.png) [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Post date:** [November 5, 2009, 4:36am UTC](https://www.ruby-forum.com/t/redcloth-error/178355/5 "2009-11-05T04:36:19Z")

</div>

anton effendi wrote:

> hmmm…  
> have u tried copy that gem into vendor/gems?
> 
> On Wed, Nov 4, 2009 at 10:49 AM, Smit S.  
> \<removed\_email\_address@domain.invalid
> 
> > wrote:
> 
> > > > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).  
> > > > Thanks for your reply.
> > 
> > ## Help me out of this…
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –
> 
> Senior Rails Developer  
> Anton Effendi - Wu You Duan

Its working now…

Thanks Anton
