Rails 3 和 ActiveAdmin。如何添加虚拟模型?
有没有办法添加虚拟模型?例如第二个仪表板,您可以在其中显示多个不同的资源?
我之所以这么问,是因为我需要创建一个页面,其中只有文档链接,例如客户发票、公司发票和其他模型的其他文档。
Is ther a way to add a virtual model? Something such as a second dashboard where you can display more than one different resources?
I ask because I need to create a page with nothing but links to documents, like customer invoices, corporate invoices and other documents from other models.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我知道的唯一方法是创建一些空模型:
app/models/fake.rb:
然后创建生成器app/models/fake.rb:
The only way I know is to create some empty model:
app/models/fake.rb:
then create generator app/models/fake.rb: