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 :) ?

Should I upload the small test app?

//Jamal

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


--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 1, '12 at 10:20a
activeMar 1, '12 at 10:20a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Jamal Soueidan: 1 post

People

Translate

site design / logo © 2021 Grokbase