XHTML Strict Invalid with RESTful forms
Sep 8 2006
At work, I discovered that using the standard “form_for” helper with simply restful generated invalid markup, since the secret “fake method” input tag was not enclosed in a proper element.
Therefore, I wrote a plugin to hack it in for the time being. you can get by:
script/plugin install http://svn.soniciq.com/public/rails/plugins/iq_fix_restful_method_tag
It works by hacking the tag helper to put a div tag around itself first if the tag has a name of ‘_method’. Evil, but it works for now.