How to edit user controller in devise so I can update my user's profile without devise

时间:2017-10-12 09:58:07

标签: ruby ruby-on-rails-4 devise

I have an app that uses devise for sign up and login. I'm trying to create the edit account page.

I was wondering if I can update the user information without using devise elements whatsoever, and I want to edit the controller for User.

1 个答案:

答案 0 :(得分:1)

如果您不想使用设计提供的操作,您可以生成自己的标准控制器并实施编辑操作。

rails g controller Users edit

如果要自定义设计编辑配置文件控制器,请查看https://github.com/plataformatec/devise#configuring-controllers此链接,它说明如何自定义视图和控制器。