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:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user