Reputation: 10825
All my browsers (Chrome 15, Firefox 5) sending 3 requests on the one action - button or link click (with remote attribute, of course). Maybe I have a few bindings, but application has just 2 included js files:
= javascript_include_tag :application
= javascript_include_tag 'rails'
= javascript_include_tag 'jqueryui'
Application generated by template https://github.com/RailsApps/rails3-devise-rspec-cucumber has nothing 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'
Solved.
Upvotes: 3
Views: 321
Reputation: 21
You have only one line to include:
= javascript_include_tag :application
since XX century.
Upvotes: 1
Reputation: 895
maybe you have precompiled your assets (javascripts)
http://guides.rubyonrails.org/asset_pipeline.html
Upvotes: 1