Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Registered text helper classes

#2494

Here's a patch to enable the registration of custom classes for different text helpers such as textilize and markdown using the following syntax:


ActionView::Base.text_helper :markdown, RDiscount

With the above line, RDiscount will be used as the Markdown library instead of BlueCloth. I can also see a lot of view helpers being implemented via classes that can be swapped out for custom implementations.

Reported by Pat Nakajima · April 14th, 2009 @ 10:20 PM

State: resolved
Milestone: 2.x
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Pat Nakajima
    Pat Nakajima
    • Tag changed from action_pack, action_view, helpers, text_helper to action_pack, action_view, helpers, patch, text_helper

    April 14th, 2009 @ 10:28 PM

  2. Pat Nakajima
    Pat Nakajima
    • Assigned user set to Yehuda Katz (wycats)

    April 17th, 2009 @ 09:49 PM

  3. Yehuda Katz
    Yehuda Katz

    Can you just override the textilize method in your app?

    April 18th, 2009 @ 12:56 AM

  4. CancelProfileIsBroken