You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With jQuery 1.4.2 and Rails 3.x (manual method), I could override and bind the ajax to invoke callbacks on ajax success. However, this doesn't work with jquery-ujs 1.0.12 and Rails 3.1 (git) that leads to two requests to be invoked instead of one. I suspect this is related to issue #10 Here is an example:
Generate test app
rails new test123
cd test123
rails g scaffold states name:string abbr:string
rake db:migrate
Make sure we're usin the latest 3-1-stable by modify Gemfile:
With jQuery 1.4.2 and Rails 3.x (manual method), I could override and bind the ajax to invoke callbacks on ajax success. However, this doesn't work with jquery-ujs 1.0.12 and Rails 3.1 (git) that leads to two requests to be invoked instead of one. I suspect this is related to issue #10 Here is an example:
Generate test app
Make sure we're usin the latest 3-1-stable by modify
Gemfile
:Modify following files:
app/controllers/states_controller.rb
:app/views/states/index.html.erb
:app/assets/javascripts/states.js
:With the help of Firebug, it is indicated that there are 2 requests invoked. This might explain that the binding is not successful.
The text was updated successfully, but these errors were encountered: