My route
looks like
match 'about' => 'company#about'
When I set to the url http://localhost:3000/aboutttt
, I get the error message
No route matches [GET] "/aboutttt"
I want to give the user better feedback than that.
The best solution by my opinion could be redirect the app back, or on the homepage of the app, but exist in routes any way to set default route, when I get the error above?
While you are on development. Make changes inside config/environments/development.rb by setting:
config.consider_all_requests_local = false
This will disable full error reporting and instead shows a page with interactive response for users. But this is already disabled on production environment. But I don't recommend turning it off in development mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With