Change attribute name to content
This commit is contained in:
@@ -64,6 +64,6 @@ class ArticlesController < ApplicationController
|
||||
|
||||
# Only allow a list of trusted parameters through.
|
||||
def article_params
|
||||
params.require(:article).permit(:title, :text)
|
||||
params.require(:article).permit(:title, :content)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user