As you can see, it has an onsubmit and an action. The onsubmit sends an
Ajax request. Sometimes, on some browsers (Firefox 3.0.1 on Windows)
this sends 2 HTTP POST requests to our server. One is Ajax one is not.
the users are NOT clicking the button twice. The page has lots of ads
and javascript on it and as well the above javascript is generated from
a previous Ajax call. so there is room for slowness on the browsers part
which may cause part of the issue with the double-submit occurring
about 5% of the time.
ajax_footer is:
def ajax_footer(options = {})
render :partial => ‘/ajax_footer’,
:locals => {:options => options}
end
(but should not make much difference).