質問するログイン新規登録

質問編集履歴

1

コントローラーに記述ミスがありましたので、修正しました><

2020/03/07 02:13

投稿

CodeRascal
CodeRascal

スコア8

title CHANGED
File without changes
body CHANGED
@@ -77,7 +77,7 @@
77
77
 
78
78
  private
79
79
  def post_params
80
- params.require(:post).permit(:title, :question, :qimg, :answer, :aimg, :content, :supplement, :unit_id)
80
+ params.require(:post).permit(:title, :content, :category_id)
81
81
  end
82
82
  end
83
83