J'ai eu le même problème à ce poste ici: https://rails.lighthouseapp.com/projects/8994/tickets/106-authenticity_token-appears-in-urls-after-ajax-get-requestremote_function continue d'ajouter jeton d'authenticité demande GET
routes.rb
map.namespace(:admin, :active_scaffold => true) do |admin|
admin.resources :regions, :shallow => true do |region|
region.resources :birds, :collection => {:search => :get}
end
end
vue
<%= javascript_tag %Q(
#{remote_function(:update => 'bird_search', :url => search_admin_region_birds_path(@region.id), :method => :get)}
) %>
Il affiche l'url: http://localhost:3000/admin/regions/7/birds/search?authenticity_token=F43BcQUM4z3bl7s21kLZQrqwGkuErF7C9jiNMKFTZTo%3D
qui devrait être : http://localhost:3000/admin/regions/7/birds/search
Sans cela, ma pagination Ajax ne fonctionnera pas ... aide!
J'utilise la nouvelle version 2.3.5 Vous vous demandez si elle est un bug de rails? – jaycode