I have the following code:
<%= form_tag(email_post_path, method: :put) %>
  <%= text_field_tag(:email) %>
  <%= submit_tag %>
<% end %>
and I get the error syntax error, unexpected keyword_ensure, expecting end-of-input - why is that?
I tried setting <%= end %> but that didn't help either ;)
You forgot to add do with form_tag, it should look like this
<%= form_tag(email_post_path, method: :put) do %>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With