String Rails do HTML

<% @string = "<h1>foo</h1>" %>

<%= @string.html_safe %>
Lioruby