`remote: true` is for JS requests -- in this case it still partially works because you're preventing the default action, but not on all the buttons (resulting in some extra AJAX requests to the root of the site, if you look in the console).