Merge pull request #30097 from mgiagante/master

Replaces the 17 for the actual call to params[:id] that would make th…
This commit is contained in:
Ryuta Kamizono 2017-08-07 01:05:42 +09:00 committed by GitHub
commit 22928cea1e

@ -47,7 +47,7 @@ get '/patients/:id', to: 'patients#show', as: 'patient'
and your application contains this code in the controller:
```ruby
@patient = Patient.find(17)
@patient = Patient.find(params[:id])
```
and this in the corresponding view: