Can't dup NilClass on association methods

后端 未结 2 1002
悲&欢浪女
悲&欢浪女 2021-01-14 12:23

I\'m using rails 2.3.5 and ruby 1.8.7. I\'m building a simple TODO manager. Where I have tasks that belong to a user and a user has many tasks.

I\'m using act

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 12:48

    Maybe there is something wrong with associations in model. Can you paste some code from there?

    You can also try doing the same in console. Does it give the same error? Take a look in logs, do both of your examples generates the same sql query?

提交回复
热议问题