Replaces the 17 for the actual call to params[:id] that would make the code work as intended. [ci skip]

This commit is contained in:
Mariano Giagante 2017-08-06 12:43:57 -03:00
parent 1fe55e94b7
commit b1638a8cfa
1 changed files with 1 additions and 1 deletions

View File

@ -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: