简体   繁体   English

管理员使用Devise创建/邀请新用户

[英]Admin Create/Invite New User with Devise

I have a simple rails app using devise--as such (and being a new rails guy), some of these methods are super classed and inherited, I think... 我有一个使用devise的简单Rails应用程序-这样(并且是一个新的Rails家伙),我认为其中一些方法是超分类和继承的。

How can I create a few methods in my brand new admin controller to 1) Make a new user and 2) edit current users? 如何在全新的管理器中创建一些方法来1)结交新用户和2)编辑当前用户?

I feel that the typical CRUD operations will make a lot of redundant code and I would like to use some rails best practices to simply allow admins to edit multiple profiles (where users can only edit their own) and also add... 我觉得典型的CRUD操作将产生大量冗余代码,我想使用一些Rails最佳实践来简单地允许管理员编辑多个配置文件(用户只能编辑自己的配置文件)并添加...

Again, I'm new to rails, so speak slowly. 同样,我是新手,请慢慢说。 :) :)

The devise wiki has everything you need to configure/customise devise https://github.com/plataformatec/devise , I know that's not the exact answer but its a good place to start. devise Wiki提供了配置/定制devise https://github.com/plataformatec/devise所需的一切,我知道这不是确切的答案,而是一个不错的起点。

have you looked at active admin? 你看过活跃的管理员了吗? http://activeadmin.info/ Works well with devise and gets you up and running with an administration framework very quickly http://activeadmin.info/与devise配合得很好,可以非常迅速地启动并运行管理框架

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM