rails routes placeholder middle 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'
@patient = Patient.find(params[:id])
root :to => "pages#show", :id => '1'