这是一个简单的问题示例。嵌套的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。
有什么想法?