-1

部分被命名为 new_campaign_partial.rhtml。它只有用于创建某些文本字段和日历的 html 代码

 <div id="new_campaign"
 <%render :partial =>'new_campaign_partial'%>
 </div>

 <%= link_to_function "Add a campaign" do |page|
    inser_html :bottom, :new_campaign, :partial=>'new_campaign_partial'
   end%> 
4

1 回答 1

0

更改inser_htmlpage.insert_htmlRef :- insert_html

<%= link_to_function "Add a campaign" do |page|
    page.insert_html :bottom, :new_campaign, :partial=>'new_campaign_partial'
   end %>
于 2013-01-25T05:57:35.770 回答