4

我有一个通过 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>

页面将其作为文本加载,而不是实际呈现。我尝试做一个链接,它工作正常。

4

1 回答 1

8

公共文件夹仅用于静态内容——不会在这些文件上运行任何渲染引擎。

于 2012-03-02T16:42:41.430 回答