nil.id problem: Wondering why the id 4 is getting saved in Table instead of actual id?
Today I figured out the problem which is troubling me from 3-4 months, I am referring here it as “nil.id problem” . Actually the situation was: User belongs_to :network, and Network has_many :users (simple association) so I wanted to save network id in users table as network_id an attribute. There were all the necessary validations … Continue reading nil.id problem: Wondering why the id 4 is getting saved in Table instead of actual id?