rails path code example
Example 1: root route in rails
root :to => "pages#show", :id => '1'
Example 2: rails all path
# in terminal:
rails routes # => List all your routes
# If you want to select
rails routes | grep yourModelName..
Example 3: rails resources
get '/patients/:id', to: 'patients#show'
# url: your_site/patients/12