I have models Foo
and Bar
. Bar
has column foo_id
.
When I call Bar.foo_id
I get the error missing attribute: foo_id
Keep in mind that this is not an undefined method error and the column definitely is in the db. What are some common causes of this?
Thanks