這是一個簡單的問題示例。嵌套的link_to_function/insert_html不起作用
總之,如果你有一個index.rhtml裏:
<%= link_to_function "A link to insert a partial with nested insert_html" do |page|
page.insert_html :top, :with_a_nested_insert_html, :partial => 'example_partial_with_nested_insert_html'
end %>
而一個_example_partial_with_nested_insert_html.rhtml
<%= link_to_function "A nested link to insert_html" do |page|
page.insert_html :top, :with_a_nested_insert_html, :partial => 'you_wont_see_this'
end %>
它打破了「插入部分的鏈接嵌套insert_html「。我正在考慮需要做些什麼來保護部分中的javascript。
有什麼想法?