I seem to have a small problem in Rails. Lets say I have a class Foo
with an habtm association to Bar. So Foo has_and_belongs_to Bars en vice
Now, when I do lets say
Foo.bars, I get an undefined method bars for #Foo:0x1034f2f00 when I
run it through the browser.
Now, when I do it through irb, it returns an empty array as expected.
Does someone here has any clue how this can happen and what I need to
look for, becouse I’m completely clueless.
Thanks for any tips.