Quick tip: Display raw html

How to display raw html



Simple, if you generate scaffold, edit show.html.erb and remove h


<%=h @static.content %>

after that, @static.content would be display without html escape. It's very useful if you add
to you application some static pages managed from control panel and contains raw html.

No comments: