Fix very strange bug with form_for and capture_html @ujifgc #1177