Rails问题与人性化

我试图将作为哈希键的符号人性化
c.each_key{ |f| humanize(f.to_s)}
但由于某种原因,我得到了这样的错误
ActionView::Template::Error (undefined method 'humanize' for #<#<Class:0xb5b77a4>:0xb5b6598>)
知道这里出了什么问题吗?     
已邀请:
试试这种方式。
c.each_key{ |f| f.to_s.humanize}
    

要回复问题请先登录注册