#108 ✓invalid
James M

textilize_without_paragraph???

Reported by James M | February 24th, 2009 @ 09:04 AM

I may just be stupid, but why can I not get this function to work from a view. Here is what I am doing:

<%= textilize_without_paragraph(todo.description) %>

All I get is an error saying:

uninitialized constant ActionView::Helpers::TextHelper::RedCloth

I have double and triple checked that I have the gem installed, what else can I do?

Cheers

Comments and changes to this ticket

  • Jason Garber

    Jason Garber February 26th, 2009 @ 07:21 PM

    • Tag changed from 4.1.9, textilize_without_paragraph to 4.1.9, rails, textilize_without_paragraph
    • State changed from “new” to “open”

    I can't replicate it. Please do the following:

    1.) Look in vendor/ to see if you have redcloth in there. 2.) Run ./script/about and tell me what you get. 3.) Run ./script/console and check RedCloth::VERSION. Tell me what you get.

    Thanks

  • Jason Garber

    Jason Garber March 2nd, 2009 @ 10:22 AM

    • Milestone cleared.

    Need some more information or I'll have to close the ticket since I can't replicate it.

  • Jason Garber

    Jason Garber March 17th, 2009 @ 04:17 AM

    • State changed from “open” to “invalid”

    No response from James. Hope he got it figured out.

  • Jake Skedgell

    Jake Skedgell March 19th, 2009 @ 04:38 AM

    I just had this same problem when upgrading from Rails 2.2 to 2.3.

    To fix it I just specified that my app needed RedCloth loaded in environment.rb:

    config.gem "RedCloth"

    So I don't think is was a RedCloth bug anyway.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Pages