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?
I was deploying my latest code to live site today using Capistrano, and suddenly I stuck. When I tried to deploy the code, it checked out the latest version on the server and while executing after_symlink task it rolled back. I was surprised because the deploy script was working fine earlier and I haven’t made … Continue reading Stuck with capistrano