For example, going to localhost:3000/boats just shows a blank page with login info on the top right.
Show 404 error.
config/routes.rb
get '/*path' => 'homepage#index'
# Catch all route with get '/*path' that will direct any other request
# that doesn’t match the existing routes to the index action of the homepage controller.
# This way, the routing on the frontend will handle requests that are not related to creating, reading, or deleting squads.
Handle unknown routes on front end.
For example, going to localhost:3000/boats just shows a blank page with login info on the top right.
Show 404 error.
config/routes.rb
re-render the
home
component