and for some reason it complains about the <% end %> tag corresponding
to the form_tag with this message -> syntax error, unexpected kEND,
expecting $end
If I replace the second <% end %> with </form> It works fine.
and for some reason it complains about the <% end %> tag corresponding
to the form_tag with this message -> syntax error, unexpected kEND,
expecting $end
if you forget about all the bits in the middle you're just doing
form_tag(...)
end
Which is obviously a syntax error. On the other hand,
form_tag(...) do
end
is fine.
When using form_tag like this you need to use <% and not <%=