提交 22928cea 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #30097 from mgiagante/master

Replaces the 17 for the actual call to params[:id] that would make th…
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册