Updates form helper to work with Rails 4