I have this object y my database:
=> #<Page _id: 50683d421d41c8363d000060, _type: nil, created_at: 2012-09-30 12:38:26 UTC, title: "Terms", description: "Terms of use... <b>description</b>", published: true, slug: "terms">
On description field I have added with https://github.com/Nerian/bootstrap-wysihtml5-rails a b tag for bold.
But When I render my page I can see:
Terms of use... <b>description</b>
How can I render html tags on my mongodb database data?
Rails escapes html by default for security’s sake.
When you trust content, tell Rails:
Or: