Skip to content

[demo-1] Hotwireを使うように設定、Drive対応 #13

Open
yakitorii wants to merge 3 commits intomainfrom
1-use-drive
Open

[demo-1] Hotwireを使うように設定、Drive対応 #13
yakitorii wants to merge 3 commits intomainfrom
1-use-drive

Conversation

@yakitorii
Copy link
Member

@yakitorii yakitorii commented Dec 12, 2022

やったこと

  • hotwireを有効にした
  • データ作成失敗時のリダイレクトにstatus: :unprocessable_entity
  • データ削除時のリダイレクトにstatus: :see_other
  • formの余計なオプションを削除

変化

  • サイドバーでの、気持ちアイコンでの絞り込みで、body内のみ再レンダリングされるようになる

公式ドキュメント

Turbo Reference:Drive

Turbo Handbook:Navigate with Turbo Drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant