Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address. jquery-ujs.js(rails.js)便利だよって話 自前でやる場合 JavaScript でクリックのイベント処理とか GET 以外ならトークンを含めるとか全部やらないといけないから面倒くさい HTML <a href="/some_action" class="some-action">some action</a> Javascript $('a.some-action').live('click', function(event) { event.preventDefault(); var self = $(this); var url = self.attr('href'); var csrf_to
![jquery-ujs.js(rails.js)便利だよって話](https://cdn-ak-scissors.b.st-hatena.com/image/square/3bee82c7f10f49ac6c52299be9b4859b1ed55b29/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fimages%2Fmodules%2Fgists%2Fgist-og-image.png)