LoginSignup
15

More than 1 year has passed since last update.

Rails の data-confirm の確認ダイアログが 2 回出てしまう

Last updated at Posted at 2014-07-25

Rails(3 でも 4 でも)で data-confirm で「実行してもよろしいですか?」みたいな確認ダイアログを出すやつ。

<%= submit_tag 'Submit', :data => {:confirm => 'Are you sure?'}%>

これが何だか分からないけど、二回出ちゃうみたいな状態になっていたら

config.assets.debug = true

を false にすると起きなくなります・・が、それでいいのだろうか。

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
15