controller problems

Hi Pablo,

It seems like deadline pertains more to the model than to the controller. Why not put something like the following into your Job model?

def deadline     self.created_on + self.duration.days end

If you do it this way, you have access to the job's deadline wherever you have access to a job.

Note that the value will be calculated every time you call the method. That may or may not be efficient.