string rails ke html

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

<%= @string.html_safe %>
Lioruby