标签: ruby-on-rails-4
示例:
_detail.html.erb位于产品视图中,我想在_medicine.html.erb视图中的pets部分内部呈现此部分内容。
_detail.html.erb
_medicine.html.erb
pets
错误消息:
宠物中缺少模板错误#new say缺少'partial 产品/细节'
pets/_medicine.html.erb有以下代码:
pets/_medicine.html.erb
<%= render 'products/detail' %>