引擎中的渲染单元
我有一个使用引擎的应用程序。我在这个引擎内生成了一个单元。当我尝试在引擎视图中渲染此单元格时,出现错误:
缺少模板用户/显示 {:handlers=>[:erb, :builder, :咖啡], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :原子,:yaml,:multipart_form,:url_encoded_form,:json], :locale=>[:en, :en]}。搜索位置:* “/.../authorization/myApp/app/cells”
我的单元控制器位于:
“/.../authorization/myEngine/app/cells/user_cell.rb”
和视图:
“/.../authorization/myEngine/app/cells/user/”
因此,应用程序运行正确的单元控制器,但尝试从 myApp 目录而不是 myEngine 目录渲染单元视图。我设法通过创建指向单元格视图文件夹的符号链接来临时修复它,但它看起来不太专业。
是否有一个配置文件,我可以在其中指定应用程序应在何处查找单元格?
I have an app which uses an engine. I generated a cell inside this engine. When I try to render this cell in engine's view i get an error:
Missing template user/display with {:handlers=>[:erb, :builder,
:coffee], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss,
:atom, :yaml, :multipart_form, :url_encoded_form, :json],
:locale=>[:en, :en]}. Searched in: *
"/.../authorisation/myApp/app/cells"
My cell's controller is in:
"/.../authorisation/myEngine/app/cells/user_cell.rb"
and views in:
"/.../authorisation/myEngine/app/cells/user/"
So, the application runs the right cell controller but tries to render cell view from myApp dir instead of myEngine dir. I managed to temporarily fix it by creating a symbolic link to cell's view folder, but it doesn't look very professional..
Is there a config file where I can specify where the application should look for cells?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新到 cells-3.8.2,应该可以解决这个问题。
Update to cells-3.8.2, should fix this problem.