Whoa, thats all to it, I need to get my formatting down right now =) This is my first language so I have a long way to travel:) now this is something I will be aware of in the future. Thank you On Sun, Mar 1, 2009 at 12:28 AM, Phlip <phlip2005 / gmail.com> wrote: > Zayd Connor wrote: > > I get the following error message when running the code below: >> undefine method 'bottles _of_beer' for #<Bottles:0x2be1e1c> >> (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 > >