Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4650

Why is this an error with ERB?

$
0
0
<div class='row'><%= form.field_container :name do %><%= form.label :name, raw('Name'+ content_tag(:span, ' *', :class => 'required')) %><%= form.text_field :name, :class => 'fullwidth' %><%= form.error_message_on :name %><% end %></div>

Why is this producing the following error?

$ 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 ')'

Viewing all articles
Browse latest Browse all 4650

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>