From 12f6cc4b0c62c2dc0a505a9ff05b11409c119160 Mon Sep 17 00:00:00 2001 From: yakitorii Date: Wed, 7 Dec 2022 14:13:48 +0900 Subject: [PATCH] =?UTF-8?q?Hotwire=E3=82=92=E6=9C=89=E5=8A=B9=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F,=20Drive=E3=81=AB=E5=AF=BE=E5=BF=9C=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hotwire-tw-demo/app/controllers/tweets_controller.rb | 2 +- hotwire-tw-demo/app/javascript/application.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hotwire-tw-demo/app/controllers/tweets_controller.rb b/hotwire-tw-demo/app/controllers/tweets_controller.rb index c22953c..7c0431e 100644 --- a/hotwire-tw-demo/app/controllers/tweets_controller.rb +++ b/hotwire-tw-demo/app/controllers/tweets_controller.rb @@ -11,7 +11,7 @@ def create if @tweet.save redirect_to action: :index else - render :index + render :index, status: :unprocessable_entity end end diff --git a/hotwire-tw-demo/app/javascript/application.js b/hotwire-tw-demo/app/javascript/application.js index cb95780..3016c21 100644 --- a/hotwire-tw-demo/app/javascript/application.js +++ b/hotwire-tw-demo/app/javascript/application.js @@ -2,4 +2,3 @@ import "@hotwired/turbo-rails" import "./controllers" import * as bootstrap from "bootstrap" -Turbo.session.drive = false