views:

302

answers:

1

Hello

I am getting the an error on the following code in one of my partial views

<% form_for (@user) |form| %>

SyntaxError in User#edit

Showing user/_user_edit_form.html.erb where line #1 raised:

compile error ../app/views/user/_user_edit_form.html.erb:1: syntax error, unexpected ';' _erbout = ''; form_for (@user) |form| ; _erbout.concat "\n"

Does anyone know what this means?

+1  A: 

You forgot the do:

<% form_for (@user) do |form| %>
Pesto
haha, thank you.
rube_noob