I have models Foo and Bar . Bar has a foo_id column. When I call Bar.foo_id , I get the missing attribute: foo_id error message missing attribute: foo_id
Keep in mind that this is not an undefined method error, and the column is definitely in db. What are some common reasons for this?
thanks
ruby ruby-on-rails activerecord
user94154
source share