undefined method `[]' for true:TrueClass
I am getting undefined method [] for true:TrueClass
error while running the rake task in acts_as_recommendable plugin. The error points to the following line.
items = options[:on_class].find(:all开发者_运维问答).collect(&:id)
Can someone please tell what am i doing incorrectly.
options
is probably defined as true
. We can't really know why without more information.
精彩评论