Im getting a 'syntax error, unexpected keyword_do_block, expecting keyword_end ... form_for[@event, @document] do |f| @output_buffer.safe_appe... ... ^ ' and 'syntax error, unexpected keyword_ensure, expecting end-of-input'
I trying to add a document submitting form to another page in my project. Is the form_for written incorrectly??
<div class="span5">
<div class="span8">
<h3>Event Files</h3>
<%= form_for[@event, @document] do |f| %>
<div class="field"><%= f.file_field :doc %></div>
<div class="actions"><%= f.submit %></div>
<% end %>
</div>
</div>