ruby on rails - syntax error, unexpected '<' < end );@output_buffer.safe_append=' ^): -


i have been receiving above mentioned error couple of hours now. working broadcast screen ruby project needs have drop down menu linked skills table. have generated broadcast controller, , when editing _form.html.erb file, have been thrown few syntax errors, attached snippets of files

console message

_form.html.erb

i have tried moving "<" around , out of file still end errors.

the error message says problem is: _form.html.erb:27 <end %> used.

by way, it's not place, <% %> pattern html.erb used incorrectly. <%= form.label :skill> has no closing %>, that's why goes after until next %> treated ruby code. code incorrect , raises syntax error

in order avoid syntax errors, skill fieldset should rewritten this:

<div class="form-group row">   <%= form.label :skill %>   <%= form.collection_select :skill, skill.order(:name), :name, :name, include_blank: "select skill" %> </div> 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -