This (valid) Rails helper shows a syntax error, but it shouldn't. <%= form_for(:post) do |f| %> <% end %> Removing the equal sign eliminates the syntax error, but also the generated code. 
This (valid) Rails helper shows a syntax error, but it shouldn't.
<%= form_for(:post) do |f| %>
<% end %>
Removing the equal sign eliminates the syntax error, but also the generated code.