2
在acts_as_recommend插件中运行rake任务时,出现undefined method [] for true:TrueClass
错误。该错误指向以下行。未定义方法`[]'为true:TrueClass
items = options[:on_class].find(:all).collect(&:id)
有人可以告诉我我做错了什么。
在acts_as_recommend插件中运行rake任务时,出现undefined method [] for true:TrueClass
错误。该错误指向以下行。未定义方法`[]'为true:TrueClass
items = options[:on_class].find(:all).collect(&:id)
有人可以告诉我我做错了什么。
options
大概定义为true
。没有更多的信息,我们不知道为什么。
它在我看来像你正在做'key = true'这里你的意思是做'key ='true' – 2010-07-12 22:08:21
是的,显然'选项'不是一个散列。 – 2010-07-12 22:10:17