Rails 3 does not render HTML as markup
- by suebphatt
Hello, Stackoverflow.
I submitted a form, to create single row in SQL database table, as a blog entry:
<p>This is a paragraph.</p>
And the result, when I query it out for display, via Rails's ActiveRecord, it rendered like this, :
<p>This is a paragraph.</p>
and here's the code, when I view source in browser:
<p>This is a paragraph.</p>
How do I solve this? Or I just have to convert the < and > by Javascript?
Thank you :)