March 31st, 2008, 06:21 AM
variable is nil. Trying to multiply that with 40 is giving you your error. Since we cant see where time is assigned (or, in this case, not
assigned) we arent going to be able to provide you with much assistance.
irb(main):001:0> time = nil
irb(main):002:0> time * 40
NoMethodError: undefined method `*' for nil:NilClass
How are you assigning time
True happiness is not getting what you want, it's wanting what you've already got.