:disable_with combined with Ajax form: Possible?

Hi there,

I'm trying to have an Ajax form with a submit button that has the
:disable_with feature, but the submit button does *not* disable...

I tried like this:

= = =
<% form_remote_tag :url => { :controller => 'profiles', :action =>
'update' }, :method => :put do -%>

  <%= submit_tag 'Save', :disable_with => 'Please wait...' %>

<% end -%>
= = =

Is such a combination not possible or am I doing something wrong?

Thank you for any help!

same problem here with rails 2.3.15, no fix for that?

Rails 3.2 and later

One should use it like this: =submit_tag, data: {disable_with: ‘busy…’}