这个是我截图的路径,我想在_common_names.html.haml 中引入 局部模板 _pronunciation.html.haml, %td = render :partial => '../names/pronunciation'请问大家 我这样写错在哪?
#6 楼 @shangrenzhidao 晕啊。。。
= render :partial => '../pronunciation'
就行了啊。
你。。。。混乱了,赶紧点召唤师技能中的“净化”。
#10 楼 @liwei78 ActionView::MissingTemplate in Taxa/names#common_names
Showing /var/www/eol/app/views/taxa/names/_common_names.html.haml where line #29 raised:
Missing partial ../pronunciation with {:locale=>[:"zh-hans", :en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee, :haml]}. Searched in:
Extracted source (around line #29):
26: %td 27: = raw(common_name_display_attribution(name)) 28: %td 29: = render :partial => '../pronunciation' 30: %td 31: = name.vetted.label
还是不行