rails 3.2 routing documentation code example Example: rails resources get '/patients/:id', to: 'patients#show' # url: your_site/patients/12