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

lin_style · 2012年07月09日 · 最后由 ywjno 回复于 2012年07月09日 · 2403 次阅读

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

这个贴居然带出 Bug 了

提示没这个变量。。

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

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

需要 登录 后方可回复, 如果你还没有账号请 注册新账号