問題の簡単な例を次に示します。
つまり、次の 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を保護するために何かをする必要があると考えています。
何かご意見は?