mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix article_params method
This commit is contained in:
parent
f250208dd4
commit
e1970bb434
1 changed files with 1 additions and 1 deletions
|
@ -1885,7 +1885,7 @@ We also have to permit the `:status` key as part of the strong parameter, in `ap
|
|||
```ruby
|
||||
private
|
||||
def article_params
|
||||
params.require(:comment).permit(:commenter, :body, :status)
|
||||
params.require(:article).permit(:title, :body, :status)
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue