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:

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.

Found this interesting? Share it:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • TwitThis

Leave a Reply