ajax submitting twice "very weird" 3.2.1

Hi,

I have been using Rails for long time now and never faced this issue
that ajax calls get's called twice and sometimes up to 5x times for
weird reason.

Started DELETE "/campaigns/26/segments/44" for 127.0.0.1 at 2012-03-01
11:10:20 +0100
Started DELETE "/campaigns/26/segments/44" for 127.0.0.1 at 2012-03-01
11:10:20 +0100
Started DELETE "/campaigns/26/segments/44" for 127.0.0.1 at 2012-03-01
11:10:20 +0100
Started DELETE "/campaigns/26/segments/44" for 127.0.0.1 at 2012-03-01
11:10:20 +0100

I checked if I was importing jquery few times but that was not the case.

//= require jquery
//= require jquery_ujs
//= require_tree .

I then tried disabling assets-pipeline and generated the jquery files
from console.

rails generate jquery:install

This didn't fix the issue.

So I'm lost...

Any other ideas?

It's both "link_to remote=>true" and "simple_form_for @campaign, :remote
=> true" that get's called few times.

Any ideas for what the problem is :slight_smile: ?

Should I upload the small test app?

//Jamal

Attachments:
http://www.ruby-forum.com/attachment/7109/small_app.zip