Browsers send an AJAX request 3 times

All my browsers (Chrome 15, Firefox 5) send 3 requests for one action - a button or link (with the attribute removed, of course). Maybe I have several bindings, but the application has only 2 js files:

= javascript_include_tag :application = javascript_include_tag 'rails' = javascript_include_tag 'jqueryui' 

An application created using the https://github.com/RailsApps/rails3-devise-rspec-cucumber template is not unusual. Additional gems (except https://github.com/RailsApps/rails3-devise-rspec-cucumber/blob/master/Gemfile ):

 gem "devise", ">= 1.4.2" gem "frontend-helpers" gem "rails-footnotes", ">= 3.7", :group => :development gem 'thin' gem 'kaminari' gem 'formtastic' 

solvable.

+3
firefox google-chrome ajax ruby-on-rails-3
Aug 17 '11 at 8:00
source share
2 answers

You may have precompiled your assets (javascripts)

http://guides.rubyonrails.org/asset_pipeline.html

+1
Feb 12. '12 at 8:14
source share
— -

You have only one line:

  = javascript_include_tag :application 

since the 20th century.

+1
May 10 '14 at 10:44
source share



All Articles