這看起來很基本,但我使用Rails 5,並將所有視圖交換到YAML而不是ERB。現在,我的測試一個失敗說以下內容:使用HAML而不是ERB導致測試失敗
ActionController::UnknownFormat: ProductsController#index is missing a template for this request format and variant.
request.formats: ["text/html"]
request.variant: []
test/controllers/products_controller_test.rb:9:in `block in <class:ProductsControllerTest>'
在哪裏有更改默認的,或者是有其他的問題我來解決?我的路線很好,我可以訪問索引頁面沒有問題。
是標題相關? – Esse