If I enter wrong route or if no routes match error comes then I want to redirect to root_path. How can I do this?
Thank In Advance
Create the file in 'public/404.html' and redirect to, if path not found:
get '*path' => redirect('/404.html')
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