缺少特定区域设置的模板;导轨和单元
在使用 Cucumber 测试我的 Rails 应用程序期间,仅在具有英语区域设置的 MacBook 上,我在“我位于案例页面”步骤中收到以下错误。在具有德语区域设置的计算机上没有问题。该页面在浏览器中呈现,没有任何错误。
Missing template cell/rails/display with {:handlers=>[:rhtml, :prawn_xxx, :erb, :rxml, :prawn_dsl, :prawn, :builder, :rjs], :locale=>[:en, :en], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf]} in view paths "/Users/jb/swt/features/app/cells", "/Users/jb/swt/features/app/cells/layouts" and possible paths report_table/displaycell/rails/display (ActionView::Template::Error)
/opt/local/lib/ruby/gems/1.8/gems/cells-3.4.4/lib/cell/rails.rb:140:in `find_family_view_for_state'
/opt/local/lib/ruby/gems/1.8/gems/cells-3.4.4/lib/cell/rails.rb:154:in `render_view_for'
/opt/local/lib/ruby/gems/1.8/gems/cells-3.4.4/lib/cell/rails.rb:124:in `render'
/Users/jb/swt/app/cells/report_table_cell.rb:112:in `display'
我如何告诉 Rails 对所有语言仅使用一个模板?
During Testing my rails app with cucumber I get the following error in the step "And I am on the cases page" only on a MacBook with english locale. On Computers with german locale there is no problem. The page renders in the browser without any errors.
Missing template cell/rails/display with {:handlers=>[:rhtml, :prawn_xxx, :erb, :rxml, :prawn_dsl, :prawn, :builder, :rjs], :locale=>[:en, :en], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf]} in view paths "/Users/jb/swt/features/app/cells", "/Users/jb/swt/features/app/cells/layouts" and possible paths report_table/displaycell/rails/display (ActionView::Template::Error)
/opt/local/lib/ruby/gems/1.8/gems/cells-3.4.4/lib/cell/rails.rb:140:in `find_family_view_for_state'
/opt/local/lib/ruby/gems/1.8/gems/cells-3.4.4/lib/cell/rails.rb:154:in `render_view_for'
/opt/local/lib/ruby/gems/1.8/gems/cells-3.4.4/lib/cell/rails.rb:124:in `render'
/Users/jb/swt/app/cells/report_table_cell.rb:112:in `display'
How can I tell Rails to use only one template for all Languages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来#render 中没有传递视图名称。
如果您将此类问题发布到我们的列表中,您一定会在几个小时内获得支持:http://groups.google.com/group/cells-and-apotomo
请粘贴您应该渲染的单元格状态。
Looks as if there is no view name passed in #render.
If you post such questions to our list, you'll surely get support within a few hours: http://groups.google.com/group/cells-and-apotomo
Please paste your cell state that is supposed to render.