{"action":"created","issue":{"url":"https://api.github.com/repos/sferik/rails_admin/issues/2265","labels_url":"https://api.github.com/repos/sferik/rails_admin/issues/2265/labels{/name}","comments_url":"https://api.github.com/repos/sferik/rails_admin/issues/2265/comments","events_url":"https://api.github.com/repos/sferik/rails_admin/issues/2265/events","html_url":"https://github.com/sferik/rails_admin/issues/2265","id":69847958,"number":2265,"title":"Update devise model without password","user":{"login":"passalini","id":475974,"avatar_url":"https://avatars.githubusercontent.com/u/475974?v=3","gravatar_id":"","url":"https://api.github.com/users/passalini","html_url":"https://github.com/passalini","followers_url":"https://api.github.com/users/passalini/followers","following_url":"https://api.github.com/users/passalini/following{/other_user}","gists_url":"https://api.github.com/users/passalini/gists{/gist_id}","starred_url":"https://api.github.com/users/passalini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/passalini/subscriptions","organizations_url":"https://api.github.com/users/passalini/orgs","repos_url":"https://api.github.com/users/passalini/repos","events_url":"https://api.github.com/users/passalini/events{/privacy}","received_events_url":"https://api.github.com/users/passalini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-21T13:35:41Z","updated_at":"2015-05-02T04:33:50Z","closed_at":null,"body":"I'm trying to update an user without provide the password, but the field password is required and the password confirmation isn't! I only can update an user if I provide some password, but I can leave the passoword confirmation blank.\r\n\r\nIt's the first time that it occurs to me and can't find any solution to fix it...\r\n\r\n```ruby\r\n# user.rb\r\nclass User < ActiveRecord::Base\r\n  # Include default devise modules. Others available are:\r\n  # :lockable, :timeoutable and :omniauthable\r\n  devise :database_authenticatable, :registerable, :confirmable,\r\n         :recoverable, :rememberable, :trackable, :validatable\r\n\r\n  has_many :wishes\r\n  has_many :addresses\r\n\r\n  accepts_nested_attributes_for :addresses\r\nend\r\n```\r\n\r\n```ruby\r\n# rails_admin.rb\r\nRailsAdmin.config do |config|\r\n  ## == Devise ==\r\n  config.authenticate_with do\r\n    warden.authenticate! scope: :admin\r\n  end\r\n  config.current_user_method(&:current_admin)\r\n\r\n  config.actions do\r\n    dashboard                     # mandatory\r\n    index                         # mandatory\r\n    new\r\n    export\r\n    bulk_delete\r\n    show\r\n    edit\r\n    delete\r\n    show_in_app\r\n  end\r\nend\r\n```\r\n\r\nI'm using devise 3.4.1 and rails_admin 0.6.7"},"comment":{"url":"https://api.github.com/repos/sferik/rails_admin/issues/comments/98301102","html_url":"https://github.com/sferik/rails_admin/issues/2265#issuecomment-98301102","issue_url":"https://api.github.com/repos/sferik/rails_admin/issues/2265","id":98301102,"user":{"login":"ezrarush","id":3180433,"avatar_url":"https://avatars.githubusercontent.com/u/3180433?v=3","gravatar_id":"","url":"https://api.github.com/users/ezrarush","html_url":"https://github.com/ezrarush","followers_url":"https://api.github.com/users/ezrarush/followers","following_url":"https://api.github.com/users/ezrarush/following{/other_user}","gists_url":"https://api.github.com/users/ezrarush/gists{/gist_id}","starred_url":"https://api.github.com/users/ezrarush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezrarush/subscriptions","organizations_url":"https://api.github.com/users/ezrarush/orgs","repos_url":"https://api.github.com/users/ezrarush/repos","events_url":"https://api.github.com/users/ezrarush/events{/privacy}","received_events_url":"https://api.github.com/users/ezrarush/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T04:33:50Z","updated_at":"2015-05-02T04:33:50Z","body":"put this in your /config/initializers/rails_admin.rb\r\n\r\n```ruby\r\nconfig.model User do\r\n  update do\r\n    exclude_fields :password, :password_confirmation\r\n  end\r\nend\r\n```\r\nIf your devise model is not User than use its name instead. \r\nPlease note, now your rails_admin cannot change user passwords. The solution is to make a new action \"change password\"."}}