In the routing guide it says that “a single entry in the routing file, such as resources :photos creates seven eight different routes in your application, all mapping to the Photos controller:“.
photos GET /photos(.:format) photos#index
POST /photos(.:format) photos#create
new_photo GET /photos/new(.:format) photos#new
edit_photo GET /photos/:id/edit(.:format) photos#edit
photo GET /photos/:id(.:format) photos#show
PATCH /photos/:id(.:format) photos#update
PUT /photos/:id(.:format) photos#update
DELETE /photos/:id(.:format) photos#destroy
How to create the equivalent routes using match and the verb methods (get, post, patch, put, delete)?
and