RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: DavidG73
I'm sorry. I'm still a little unclear. I understand that instance variables of a controller are killed on every request. This is because every new request generates a new controller object (is this correct?). However, wouldn't the instance variables in a model last until model.destroy?
Otherwise, how is the lifetime of a model's instance variables defined?