您好,我的 rails 应用程序出现了一个奇怪的错误。
ActionView::MissingTemplate (Missing partial foo/bar, application/bar with {:locale=>[:en], :formats=>[:js, "application/ecmascript", "application/x-ecmascript", :html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in: blah blah
):
app/controllers/foo_controller.rb:9:in `doSomething'
现在我非常确定 app/views/foo 中有 bar.html.erb 文件。有任何想法吗?我听说当文件名中可能有空格时有时会发生这种情况,但事实并非如此。有任何想法吗?