config update route rails code example
Example 1: root route in rails
root :to => "pages#show", :id => '1'
Example 2: rails resources
get '/patients/:id', to: 'patients#show'
# url: your_site/patients/12
root :to => "pages#show", :id => '1'
get '/patients/:id', to: 'patients#show'
# url: your_site/patients/12