Topic: textilize help with textbox

Hello,
I am trying to get textilize to work with textbox within active scaffold. It seems to work if I put the code outside of the box. I have installed RedCloth and tried:

#I think the only place I need code for this to work is in the view
<dl>
  <dt>
   <label for="record_post">Post</label>
  </dt>
  <dd>

    <textarea autocomplete="off" class="description-input text-input" cols="40" id="record_description" name="record[description]" rows="20">
        <% for try in first_tries.find :all %>
      <%= textilize(try.post) %>
    <% end %>
    </textarea>
     
    
      </dd>
</dl>


what i get back is:
h1. This is a test of textile\n\nParagraph\n\nAnother paragraph\n\n* Bullets
Which is the data in the post field, it is not formatted.

Thanks again

Re: textilize help with textbox

Never used active scaffold (hate the thing), perhaps it re-defines the textilize method somewhere along the line? If not, try RedCloth.new(the_text).to_html (which is what the textilize method should do) and see what happens.

Re: textilize help with textbox

Thanks for the reply, I tried that and still have the same result. Is there another way to do this or did I maybe miss something?

<textarea autocomplete="off" class="description-input text-input" cols="40" id="record_description" name="record[description]" rows="20">      
    <% for try in first_tries.find :all %>
        <%= RedCloth.new(try.;post).to_html %>
    <% end %> 
</textarea>

Thanks again