缺少特定区域设置的模板;导轨和单元

发布于 2024-10-14 10:25:15 字数 992 浏览 2 评论 0原文

在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回首观望 2024-10-21 10:25:15

看起来#render 中没有传递视图名称。

  1. 如果您将此类问题发布到我们的列表中,您一定会在几个小时内获得支持:http://groups.google.com/group/cells-and-apotomo

  2. 请粘贴您应该渲染的单元格状态。

Looks as if there is no view name passed in #render.

  1. 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

  2. Please paste your cell state that is supposed to render.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文