Routes are defined in config/routes.rb. They are often defined as a group of related routes, using the resources or resource methods.
resources :users creates the following seven routes, all mapping to actions of UsersController:
get '/users', to: 'users#index'
post '/users', ...