> Just remove the '@'. The variable 'num' is what you want; '@num' refers > to a different, instance, variable. @num is undefined, so it defaults to > 'nil', and that's why the error was about an undefined method on the nil > object. > > (Incidentally, you can use instance variables to save state between > successive calls to the same hook. Not useful in this case, but in more > complex hooks this is handy.)
Thanks, now it sounds properly. As soon as I write something a bit more elaborate. I will publish it in the wiki for sure. Giorgio _______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
