ruby on rails - Update Controller of Devise -


I am using Devise in Rail app for User Auth. I have already created both registration and session controllers, but now I want a controller that simulates the def update from the draft. What is a way to access the controller using the devices to update the user?

Yes, whatever you want to edit with sub-class users and with the updated operation, For this, registration is used by the controller, this sub-class controller has the default update action in it:

  Class User: Registration Controller & lt; Devise :: RegistrationsController def updates Self.resource = resource_class.to_adapter.get! (Send ("current _ # {resource_name}" .to_key) if resource.update_with_password (params [resource_name]) set_flash_message: notice, if_navigational_format update? Sign_in resource_name, resource,: bypass => right response with resource: Space = & gt; After_update_path_ (resource) other clean_up_passwords (resource) response_with_navigational (resource) {render_with_scope: edit} end-end    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -