title: How to pass html for a link_to block?
body: <p>I'm trying to pass a <code>link_to</code> block with html but can't get it. I tried some other ways with no luck so I will use my original code:</p>
  
  <pre><code>&lt;% link_to survey_path(survey), :class =&gt; "button" do %&gt;
     &lt;span&gt;add questions to &lt;%= survey.name %&gt;&lt;/span&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>This doesn't show the <code>:class</code> though.</p>
  
  <p>What needs to be corrected?</p>