root rails code example
Example 1: get and to rails
@patient = Patient.find(params[:id])
Example 2: root route in rails
root :to => "pages#show", :id => '1'
Example 3: rails resources
get '/patients/:id', to: 'patients#show'
# url: your_site/patients/12