Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为 RefineryCMS 生成了一个扩展,遵循炼油厂指南中关于“生成一个扩展以使用你的 MVC”的说明。我现在需要更改布局,但它在哪里?我找不到任何可以告诉我可以从哪里覆盖它的文档。
也许有点晚了。
如果我很好地理解了你的问题,我会建议你在layout里面添加你的自定义app/views/layout/my_custom_layout.html.erb。
layout
app/views/layout/my_custom_layout.html.erb
然后我在您的扩展视图中将其呈现如下:
<%= render '/layout/my_custom_layout' %>
希望它会帮助某人。