这看起来很基本,但我使用Rails 5,并将所有视图交换到YAML而不是ERB。现在,我的测试一个失败说以下内容: ActionController::UnknownFormat: ProductsController#index is missing a template for this request format and variant.
request.formats: ["text
任何人都可以解释这个错误吗?尝试在ERB文件中分割和减去。我相信最好的做法是在控制器中做,但宁可不行。 ActionView::Template::Error (AcctLedger can't be coerced into Fixnum):
Mar 09 00:25:34 myapp app/web.2: 107:
Mar 09 00:25:34 myapp ap