Topic: need help RedCloth

I'm trying to use redcloth in my post, this is my code for my show.rhtml

<p class="tagline"><em><%=h @post.title %></em></p>

  <br /><img src="../images<%=h @post.picture %>"/>

<p><%= %></p>
<br />
<hr />

<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>

this is the error:-

* NoMethodError in Posts#show

Showing posts/show.rhtml where line #7 raised:

undefined method `new' for RedCloth:Module

Extracted source (around line #7):

4:   <br /><img src="../images<%=h @post.picture %>"/>
5: </p>
7: <p><%= %></p>
8: <br />
9: <hr />

It's seem i have not reqiured RedCloth in to my app, how do I do this I've tried every thing
I tried to run RedCloth from the console, like so:"Some text").to_html

the output was as follows:

NoMethodError: undefined method `new' for RedCloth:Module
        from (irb):1

How do I sort out this problem ?

I know it sounds so simple but I'm new to RoR!

Re: need help RedCloth

I assume RedCloth is installed? Check to see that its a newer version of RedCloth, if you don't specify the source when you install it gets an older version

Also you can add it to your environment.rb file and specify a version to load:

config.gem "RedCloth", :version => ">= 3.301", :source => ""