form_withを使ったときはストロングパラメータの書き方が少し変わる

private

def post_params

  params.require(:post).permit(:title, :content)

end

require(:モデル名)の記載が増える