ruby (on rails) gem for basic form markup -


i'd add basic markup (bbcode , on) app i'm working on. need not more basic functionality such [b], [url] , tags that.

can recommend gem easy drop in?

edit: got tip use rdiscount, installed , trying use. unsure how use it. first idea use in :before_save filter in model, means saving html database. means if want edit content there bunch of html-tags showing user.

another idea had create helper method in app/helpers/application_helper return html views calling helper_name(post.content). best idea, , seems work (partially). ruby on rails still prevents html "used" escapes tags.

do recommend other way use it? if not, how can "unescape" html?

something rdiscount, perhaps? not clear requirements are, here's info project.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -