Routes in Ruby on Rails 5: how you can use resources and records to define URLs
https://medium.freecodecamp.org/routes-in-ruby-on-rails-5-using-resources-and-records-to-define-urls-411a68afa21a
Ruby on Rails has a set of pre-built helper methods to create routes for web pages in your application. While they can be simple to get started, they can be configured to generate a range of customisable routes and pages for your web app.
config/routes.rb is where you specify the routes for your Ruby on Rails application. This tutorial will show you how to add to this file to define your routes using both helper methods and more customised options.