From: Phlip Date: 2009-03-01T14:28:57+09:00 Subject: Re: Ruby beginner Problem Zayd Connor wrote: > I get the following error message when running the code below: > undefine method 'bottles _of_beer' for # > (NoMethodError) > class Bottles > def initialize (bottles_of_beer, bottle_word, one_word) ^ Ruby is space sensitive between the end of a method name and its first parameter. You gotta take that space out. In general, I don't know what other languages and editors you have learned, but Ruby is very easy to format correctly via muscle memory. Just set your tabs to 2 spaces (no \t tab characters), and turn on the autoindent. From there, keeping everything correctly formatted is quite simple, and this will lead, in turn, to fewer syntax errors. I remember a Visual Basic Classic that would have removed that space, for example, but I know no Ruby editor which will does that for you! -- Phlip