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:
parent
1fe55e94b7
commit
b1638a8cfa
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue