Fixes. Generate hidden _method field if necessary.