<div dir="ltr">Sounds to me like the remote=true stuff is broken and the ajax submission isn’t stopping the click / submit event on the form and so the browser is also doing a proper non-ajax form request.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 17 January 2014 11:50, Andrew Stewart <span dir="ltr"><<a href="mailto:boss@airbladesoftware.com" target="_blank">boss@airbladesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
<br>
[This isn't a Ruby question.]<br>
<br>
I have a Rails 3.0.x app with a form generated like this:<br>
<br>
    = form_tag foos_search_path, remote: true, method: 'get', :'data-type' => 'html' do<br>
      = text_field_tag :code, params[:code], autofocus: true<br>
      = submit_tag 'Find', disable_with: 'Finding...'<br>
<br>
>From time to time the server receives a double-submission.  The first looks like this:<br>
<br>
    GET /search/foos?utf8=%E2%9C%93&code=blah&commit=Find<br>
<br>
And the second, within 1s, looks like this:<br>
<br>
    GET /search/foos?utf8=%E2%9C%93&code=blah<br>
<br>
This happened just now with someone using Chrome (it's not an IE problem).<br>
<br>
I can't reproduce this and I can't figure out how it can happen.  Any ideas?<br>
<br>
Thanks in advance,<br>
<br>
Andy Stewart<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br></div>