Re: [Rails] [Form] Method POST & PUT problem

2010-08-17 Thread Peter De Berdt
On 17 Aug 2010, at 05:19, David Sousa wrote: I have a form that should be a POST method, but Rails insist to put a hidden field "_method" that has the value "put" does anyone knows why? Since @user already exists in the database (you assign an existing record @current_user to it) and is not

[Rails] [Form] Method POST & PUT problem

2010-08-16 Thread David Sousa
Hello, I have a form that should be a POST method, but Rails insist to put a hidden field "_method" that has the value "put" does anyone knows why? Thanks, David Sousa Controller: --- def new @user = @current_user end -