在Active Admin Gem中,如何修改资源视图? [英] In Active Admin Gem,how to modify the view of resource?

查看:66
本文介绍了在Active Admin Gem中,如何修改资源视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Rails项目中实现了ActiveAdmin。我有一个名为客户的资源。在导航栏中,有一个名为新客户的选项可以创建一个客户。我如何改变这个新客户的看法?当我单击新客户按钮时,它必须接受我的电子邮件,并且应该向该电子邮件ID发送邀请。

I have implemented ActiveAdmin in my Rails project. I have a resource called "Customer". In the navigation bar, there is an option called "New Customer" to create a customer. How can I change the view of this new customer? When I click "New Customer" button, it has to accept email from me, and it should send an invitation to that email-id.

推荐答案

所有您需要做的就是遵循

All you need to do is follow this

https://gist.github.com/mikeatlas/5628317

它具有足够的详细信息来设置 devise_invitable active_admin

it has enough details to setup devise_invitable with active_admin.

这篇关于在Active Admin Gem中,如何修改资源视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆