0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

form_withのlocal: trueオプションがいらないパターン

Posted at

コメント機能実装時コメントを非同期で更新したい時にActionCableを使った。
コメントを投稿するとjsファイルは動いているが画面の読み込みが起きていた。おまけにコメントの送信ボタンを押すと、ボタンの要素にdisabled属性が付与されたりした。原因はform_withのlocal: trueオプションだったようだ。非同期を実現するにはlocal: trueオプションは不要のようだ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?