RailsCasts Pro episodes are now free!

Learn more or hide this

DavidG73's Profile

GitHub User: DavidG73

Comments by

Avatar

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?