【文件属性】:
文件名称:rails_content_issue:对 rails3 content_for 问题的调查
文件大小:257KB
文件格式:ZIP
更新时间:2021-07-13 19:28:48
Ruby
content_for 或 capture 问题的演示。
导轨 3
导轨 3.2.17
Ruby 1.9.2-p320
神秘地清除 content_for 块
结果
# no js alerts.
Layout yield :[removed] ""
Layout yield :javascript2: ""
ContentTest#example
Find me in app/views/content_test/example.html.erb
Content for :[removed] " alert('hello');\n"
Content for :javascript2: " alert('from a render_to_string');\n"
导轨 4
导轨 4.1.7
Ruby 2.1.5
按预期工作
结果
# two popup aler