我有一个在HTML数据attribuites与SLIM插入Ruby代码的问题,在ERB模板Convrt ERB数据attribuites苗条
<li data-notifications='<%= render template: "notifications/index", formats: [:json] %>'>
erb2slim转换表明这
i[data-notifications="<ruby code=\"= render template: "notifications/index", formats: [:json]\"></ruby>"]
但它的加薪苗条解析器错误:预计属性
答案看起来是正确的乍一看 - 评论也是如此,这似乎是一种不寻常的方法。 –