XHTML Strict Invalid with RESTful forms
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:
|
1 2 |
<code>script/plugin install http://svn.soniciq.com/public/rails/plugins/iq_fix_restful_method_tag </code> |
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.