我有一个导航按钮,通过Lightbox 2加载一个新页面(create.html.erb).
create.html.erb放在公用文件夹中.
一切都很好,但嵌入的红宝石不起作用.
<div class="addButtons">
<div id="addPromotion">
Add a Promotion
<div id="promotionInfo">
<%= render 'shared/promotion_form'%>
</div>
</div>
<div id="createBoard">
Create a Board
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
页面将其加载为文本而不是实际呈现.我试过做一个链接,它工作正常.