Avoid match in routes

We prefer to use explicit verbs like get, post, patch, delete over match while defining routes in routes.rb.

For example,

# config/routes.rb

# Not good
match '/my_collection', to: 'collections#my', via: 'get'

# Good
get '/my_collection', to: 'collections#my'

We started with this convention because match used to create two routes - get and post if via was not used. Starting Rails 4 onwards, passing via is mandatory so this has become a non-issue. But we still prefer to use get or post instead of using combination of match and via.

We also prefer to keep routes restful under resources and avoiding standalone routes as much as possible.