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 in […]
Archive for May, 2007
Do you actually know what is the definition for satisfaction for You ? Whenever i talk with my friends to earn huge and huge… a lots of time i usually get the comments that its not the money which can always satisfies you! More prior thing is the kind of work you are doing! Are […]
Hi all,
I found an answer(a tweak) to the question which was pinging my mind while working on my current project that How to validate one or more specific attribute of the model(field of the table i mean)?, as the requirement was to save a record after validating the model’s object through 4 steps ie. 4 […]
NOTE : This post may contains repeated and boring stuff for those who already have the programming practice of DuckTyping.
What is Duck Typing ?
Duck Typing is Dynamic Typing
In ruby we do not declare the type of the variable. It automatically becomes the object of the related class. For example, if we assign str = […]
I was deploying my latest code to live site today using Capistrano, and suddenly I stucked in a problem. 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 […]
