Rails f.submit tag disable_with isn't working

I'm trying to edit this submit tag to make it disable itself once I click it using the disable_with option, but it isn't generating the correct HTML.

<h2>Sign up</h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div><%= f.label :email %><br />
  <%= f.email_field :email %></div>

  <div><%= f.label :password %><br />
  <%= f.password_field :password %></div>

  <div><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></div>

  <div><%= f.submit "Sign up", :disable_with => "Saving..." %></div>
<% end %>

<%= render "links" %>

<%= link_to "Back", :back %>

As I said, it's not generating the correct html. It's just generating the same HTML it would without the submit tag. What's wrong here?

Edit: Here's the HTML it's generating:

<input name="commit" type="submit" value="Sign up" />

Edit 2: It seems like this is only not working for Devise forms....


Nevermind. It seems to be some problem with Devise not using the views specified by rails g devise:views.

Need Your Help

Height of JQuery UI Tab Content Panel

jquery jquery-ui jquery-ui-tabs

How can one get the height of the content area in a JQuery UI tabbed panel? $('.ui-tabs-panel').height() clearly returns the height of the content area + the height of the tabs. I am assuming there

How do i send twitter direct messages on behalf of logged in user?

ruby-on-rails-3 twitter oauth devise

I have a twitter app with access level "Read, write, and direct messages"