rails resources do block code example
Example 1: rails resources
resources :controller_name # => new create edit update index show destroy
resources :controller_name, only: [:index, :new, :create, :edit, :update]
# <=>
resources :controller_name, except: [:destroy, :show]
Example 2: rails resources
get '/patients/:id', to: 'patients#show'
# url: your_site/patients/12