1
0
Fork 0
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:
Diogo Ribeiro 2021-01-15 09:57:32 +00:00
parent f250208dd4
commit e1970bb434

View file

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