在使用 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 对所有语言只使用一个模板?