Unbreak ActiveRecordHelper::form() when protect_from_forgery is used

Can I get some +1s for this tiny patch? It fixes ActiveRecordHelper::form, which is broken by default in new applications created with Rails 2.0.

http://dev.rubyonrails.org/ticket/10739

Jeremy

+1

Can I get some +1s for this tiny patch? It fixes ActiveRecordHelper::form, which is broken by default in new applications created with Rails 2.0.

http://dev.rubyonrails.org/ticket/10739

Looks good. Could you add some tests so we ensure that no regression happens here?

I changed the implementation a little, and added an option to change the method used (so it doesn't force post on you). Tests for both the csrf protection and the method option are included in the new patch.

Jeremy