Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase
MIT License
6
stars
1
forks
source link
Add Wildcard Route to Prevent ActionController::RoutingError #730
According to https://stackoverflow.com/a/37174557/17842948, "The ActionController::RoutingError is raised when Rails tries to match the request with a route. This happens before Rails even initializes a controller - thus your ApplicationController never has a chance to rescue the exception."
This fix prevents the ActionController::RoutingError by adding a catch-all/wildcard route to config/routes.rb.
Fixes #727
727
Changes proposed in this PR:
According to https://stackoverflow.com/a/37174557/17842948, "The ActionController::RoutingError is raised when Rails tries to match the request with a route. This happens before Rails even initializes a controller - thus your ApplicationController never has a chance to rescue the exception."
This fix prevents the ActionController::RoutingError by adding a catch-all/wildcard route to config/routes.rb.