title: Why is this an error with ERB?
body: <pre><code>&lt;div class='row'&gt;
    &lt;%= form.field_container :name do %&gt;
      &lt;%= form.label :name, raw('Name' + content_tag(:span, ' *', :class =&gt; 'required')) %&gt;
      &lt;%= form.text_field :name, :class =&gt; 'fullwidth' %&gt;
      &lt;%= form.error_message_on :name %&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Why is this producing the following error?</p>
  
  <pre><code>$ erb -x -T - test.erb | ruby -c
  -:3: syntax error, unexpected ')'
  ...form.field_container :name do ).to_s); _erbout.concat "\n"
  ...                               ^
  -:9: syntax error, unexpected $end, expecting ')'
  </code></pre>