form_for question

Either way will work. The symbol specifies what the form fields names will be prefixed with and the second is the instance variable used to setup the form (default values, etc). If the name of the instance variable is the same as the symbol name then the instance variable is not a required argument.

-Bill

Luca Reghellin wrote:

Try changing the locals to this:

:locals => { :f => f, :entry => @entry }

Make any difference? If not, try adding @entry as the second argument to the form_for.

-Bill
Luca Reghellin wrote: