alamodey
alamodey

Reputation: 14953

Wiki-like formatting in Rails

I forgotten the name of this library. But it's sort of like Wiki how you type certain characters in front of your text, and then it'll make the text bold/italic/underline.

I'm not asking for the way Wiki is formatted but I'm aware there is something similar built into Rails. It's at the tip of my tongue. Thanks.

Upvotes: 0

Views: 842

Answers (3)

austinfromboston
austinfromboston

Reputation: 3780

Are you looking for the textilize view helper? In your view, just say:

<%= textilize( post.body_text ) %>

Upvotes: 1

Andreas
Andreas

Reputation: 2079

RedCloth does this. It gives you textile markup (which is among the markup languages listed in Daniel's answer).

http://redcloth.org/

Upvotes: 0

Instance Hunter
Instance Hunter

Reputation: 7925

Many of these are implemented in Ruby:

Comparison of lightweight markup languages

I like Markdown, through RDiscount.

Upvotes: 0

Related Questions