Rails Admin Customization: embed html view into dashboard

自作多情 提交于 2019-12-05 18:42:23
Vinozio

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

I can provide a partial answer to your question which is a complete answer to your question. The answer to your question is to use a partial:

Partial templates - usually just called "partials" - are another device for breaking the rendering process into more manageable chunks. With a partial, you can move the code for rendering a particular piece of a response to its own file.

Full details in the Layouts and Rendering documentation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!