Understanding the Match Method in Rails Router
the simplest most explicit form
match "photos/:id", controller: "photos", action: "show", via: :get
dispatch an HTTP GET request at /photos/:id to PhotosController class's show method.
There are various other options that the hash accepts - to, module, as , constraints, default, param.
I experiment with them in ~environment/tutorial/store