portagenetwork / roadmap

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

Open aaronskiba opened 2 months ago

aaronskiba commented 2 months ago

Fixes #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.

github-actions[bot] commented 2 months ago
1 Error
:no_entry_sign: Please include a CHANGELOG entry. You can find it at CHANGELOG.md.

Generated by :no_entry_sign: Danger