
March 31st, 2008, 06:21 AM
|
|
Contributing User
|
|
Join Date: Jan 2004
Location: Constant Limbo
|
|
the time 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.
Code:
irb(main):001:0> time = nil
=> nil
irb(main):002:0> time * 40
NoMethodError: undefined method `*' for nil:NilClass
from (irb):2
irb(main):003:0>
How are you assigning time
__________________
True happiness is not getting what you want, it's wanting what you've already got.
My Blog
|