On Fri, Aug 15, 2014 at 10:05 AM, Colin Stodd <[email protected]> wrote:

> I would like to be able to have users type in some text in the "Comment"
> area, and when they put a "new line" space to make a new paragraph, have it
> show up when its posted to the site.

Check out simple_format.  It preserves linebreaks, URLs, and some
other simple HTML, but (if I remember correctly) filters out a lot of
dangerous junk (like script tags).  There are also some gems available
to add a WYSIWYG editor.

-Dave

-- 
Dave Aronson, freelance software developer (details @ www.Codosaur.us);
see also www.PullRequestRoulette.com, Blog.Codosaur.us, www.Dare2XL.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAHxKQiiOYNjSNKbP59dt_ULx1s2F5%3DQo6Psj8na91wh7GvZ7kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to