I'm trying to add a placeholder to my Rails 5 form field but the following code is throwing a syntax error: <%= text_field_tag(:q), placeholder: 'Enter a city' %>
<%= text_field_tag(:q %>
works as expected, but adding the placeholder throws the error.