undefined method `[]' for true:TrueClass
10,827
options
is probably defined as true
. We can't really know why without more information.
Related videos on Youtube
Author by
felix
Updated on June 04, 2022Comments
-
felix almost 2 years
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.
-
Jim Schubert almost 14 yearsit looks to me like you're doing something like
key = true
where you mean to dokey => true
-
Ed S. almost 14 yearsyeah, obviously 'options' is not a hash.
-