Rails 3 assumes that everything is NOT html safe (a change of opinion from Rails 2). Now, all strings are html escaped by default:
<%= h some_string %>
is now the same as
<%= some_string %>
To unescape the HTML (i.e you already know that the string is OK to render out), you need to mark it as html_safe or use keyword raw :
<%= some_string.html_safe %>
or
<%=raw some_string %>
Starting a new business can be a daunting task, especially when it comes to securing…
Understanding the language of web development is important for anyone working in the tech field.…
The mobile app market is exploding, with an estimated 128 billion downloads in 2020 alone.…
A shocking statistic: Over 25% of downloaded apps are used only once before being deleted,…
Mobile apps have become an essential component of business success. However, developing native apps for…
The meditation app market is booming, with the best free meditation apps having a projected…