Rails '<%= render 'news_title' %>' 如果 news_title 里面有用到<%= %>不支持是吗?

lin_style · July 09, 2012 · Last by ywjno replied at July 09, 2012 · 2403 hits

'<%= render 'news_title' %>' 如果 news_title 里面有用到‘<%= %>’这样的变量解析不支持是吗?

这个贴居然带出 Bug 了

提示没这个变量。。

#1 楼 @huacnlee 果然有 BUG,什么原因导致的?

#1 楼 @huacnlee "<div class='social-share-button' data-title='#{title}' data-img='#{opts[:image]}'>",是不是这个#{title}需要进行转义一下

You need to Sign in before reply, if you don't have an account, please Sign up first.