Fix for Rails 4.0 incompatibility in form_helper (breaks Rails 3.2 compatibility)