新手问题 haml 中 helper_method 的参数问题

hlcfan · August 29, 2012 · Last by Rei replied at August 29, 2012 · 2216 hits
- @notifies.each do |n|
    %tr
        %td
            = getcomment n[1]       

n 是 Array 方法 getcomment 接到的参数并不是n[1]的值,而是'n[1]' 怎让让它接到正确的值?

这不正常,n[1] 应该就是值。

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