0

Ruby ob Rails アプリケーションで、複数のコントローラー間でビューを共有できません。助けてください。

4

2 に答える 2

0

他のビューをレンダリングしようとしているビューでこれを使用できます

abc - The name of the folder in which the other view exists (views/abc/view_name.html.erb)
xyz - The name of the view

<%= render :template "abc/xyz" %>
于 2013-08-01T19:26:04.290 に答える