I think the problem in your routes file.
Remove this line "match ‘/load_data’, to: ‘routes#new’, via: 'get’ "
and add this line- *“resources :routes” *.
Just as a first impression, without looking into it in detail - you may
have trouble using routes as a class name, it’s already a class name
under
ActionDispatch.
However, I think your problem is actually your route:
match ‘/load_data’, to: ‘routes#new’, via: ‘get’
This isn’t a resource route, it won’t generate the kind of functionality
that allows you to use the form tag syntax <%= form_for @route…