The Rails router handles incoming HTTP requests and maps them to the appropriate controller/action. Developers can define routes by adding them to routes.rb
.
Rails will output its list of routes, using the rails routes
command. Rails also displays a routes table on each 404 page:
This table includes a search box, which is very useful for searching for specific route(s). In older versions of Rails search worked for ‘path’ only. As of the lastest version of Rails, search works globally. Searching for routes is now easier than ever!