#はじめ
HTMLやHAMLでCURRENT PASSWORDに入力を省くはまずだが、それ以外にやるべきことが次にあります。
#1.
registration_controller.rb
class RegistrationsController < Devise::RegistrationsController
protected
def update_resource(resource, params)
resource.update_without_password(params)
end
end
2.controllers: {registration: 'registrations'}
routes.rb
Rails.application.routes.draw do
root 'pages#home'
devise_for :users,
path: '',
path_names: {sign_in: 'login', sign_out: 'logout', edit:'profile', sign_up: 'registration'},
controllers: {registration: 'registrations'}
resources :users, only: [:show]
end