如何将父应用程序的布局和资产应用于已安装的引擎?
How to apply parent application's layout and assets to mounted engine?
我在我的应用程序中创建了一个博客系统引擎。此博客引擎应安装为 /blog
,并且应与父应用程序具有相似的外观(header/footer/css 等)。
如何将父应用的布局和资产应用到挂载引擎?
- Ruby: 2.2.0
- Rails: 4.2.0
只需遵循 rails guide,其中讨论了使用应用程序提供的 class。
我在我的应用程序中创建了一个博客系统引擎。此博客引擎应安装为 /blog
,并且应与父应用程序具有相似的外观(header/footer/css 等)。
如何将父应用的布局和资产应用到挂载引擎?
- Ruby: 2.2.0
- Rails: 4.2.0
只需遵循 rails guide,其中讨论了使用应用程序提供的 class。