rails4 compatibility

Hey, this isn't backwards compatible with rails3, but was necessary to get the form_helper to work with rails4.