So I'm putting together a simple forum. I'd like to allow my users limited formatting options and BBCode would be plenty for my users. Knowing that I'm assuredly not the first one to want to use BBCode with RoR I googled but couldn't find a straight forward tutorial on how to create a editor which accepts BBCode nor a way to parse and display BBCode formatted input.
Any help or guides would be appreciated!
Gemfile
In the place (haml):
Besides a builtins you could also extend your own bbcode as you need. For example:
In place
Contact me: email(at)test.ru
bb-ruby on github | bb-ruby on rubygems | bb-ruby home | tags processed list
You should give bb-ruby a try. Its documentation on the web page seems to be very clear and straightforward.
Here is another gem you may find useful
http://github.com/jarrett/rbbcode