Rails管理员定制:将html视图嵌入仪表板 [英] Rails Admin Customization: embed html view into dashboard
本文介绍了Rails管理员定制:将html视图嵌入仪表板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们已经从rails admin开始页面删除了仪表板和历史记录:
问题:你如何在Rails Admin Dashboard中嵌入html页面。 答案非常简单,我需要创建以下文件:
$ b
解决方案
pre> views / rails_admin / main / dashboard.html.erb
这会覆盖标准仪表板,这很简单。
找到这里
We have removed the dashboard and the history from the rails admin starting page:
Now we want to embed a google analytics page for users to see the dashboards from GA. This page consists of some simple HTML.
QUESTION: How do you embed html pages in the Rails Admin Dashboard.
解决方案
The answer was very simple, I needed to create the following file:
views/rails_admin/main/dashboard.html.erb
And this overwrites the standard dashboard, easy as that.
Found the information here
这篇关于Rails管理员定制:将html视图嵌入仪表板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文