Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rails3にチェックボックスがある場合、ユーザーが値を変更したときにリモートAJAX呼び出しを実行するにはどうすればよいですか?
単純な作業のように聞こえますが、適切な解決策を見つけることができません。
check-box on change イベントの値をフォームに渡すことができ、 :remote => true を使用することで、チェック ボックスを変更してフォームを送信する際の form_for.syntax で AJAX を使用できます 。 form.submit() これがお役に立てば幸いです。 ありがとう。