嗯,我到這個情況,以及現在使用的軌道3.2.1
以下是主持人在app/presenters/form_presenter.rb
如何渲染部分演示者層的軌道?
class FormPresenter
def render_form
ActionView::Base.new.render partial: "passions/add_form"
end
end
從我打電話的觀點,
...
= AddFormPresenter.new.render_form
...
但它與吹以下錯誤:
13:14:12 ActionView::MissingTemplate - Missing partial passions/passion_concept_add_form with {:locale=>[:en], :formats=>[: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, :slim, :coffee, :rabl]}. Searched in:
...
還有這個類似的問題在RAILS-3.1 render method for ActionView::Base但它沒有幫助。
如何從演示者層呈現此部分?