Hi. I’m using regular scaffolds to allow users to create records, is
there an easy way to somehow parse the text they enter? eg Separate
the paragraphs of the text automatically without the user having to type
in actual html?
Thanks
Hi. I’m using regular scaffolds to allow users to create records, is
there an easy way to somehow parse the text they enter? eg Separate
the paragraphs of the text automatically without the user having to type
in actual html?
Thanks
Check out redcloth:
http://whytheluckystiff.net/ruby/redcloth/
It may do more than you want, but it looks pretty easy to use…
On Mon, Aug 25, 2008 at 9:45 PM, Dan S.
[email protected] wrote:
Hi. I’m using regular scaffolds to allow users to create records, is
there an easy way to somehow parse the text they enter? eg Separate
the paragraphs of the text automatically without the user having to type
in actual html?
You can look at markdown (bluecloth and maruku for the parsers),
textile (redcloth) or
simply the two helpers auto_link and simple_format.
Hope it will help.
–
Gabriel L. [email protected]
Thanks, simple_format was exactly what I was looking for:)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs