plataformatec/devise — Issue #1468: How To: Allow users to edit their account without providing a password
Author: mrichman
Created: 2011-11-27 15:30:50+00:00
State: open

This HOWTO does not work for me: https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password

I just did a `git clone git://github.com/RailsApps/rails3-devise-rspec-cucumber.git` and followed the instructions for Solution 1. I removed the `:current_password` field from /views/devise/registrations/edit.html.erb and added an update method to my UsersController as follows:

```

class UsersController < ApplicationController
before_filter :authenticate_user!

def show
@user = User.find(params[:id])
end

def update
params[resource_name].delete(:password) if params[resource_name][:password].blank?
params[resource_name].delete(:password_confirmation) if params[resource_name][:password_confirmation].blank?
end

end
```

I still get prompted with the validation error "Current password can't be blank".

Any ideas?

Thanks,
Mark