Skip to content

Instantly share code, notes, and snippets.

View charmcitygrrl's full-sized avatar

charmcitygrrl

View GitHub Profile
@charmcitygrrl
charmcitygrrl / gist:5071292
Created March 2, 2013 14:41
Important note: Class names in ruby have to start with a capital letter.
Important note: Class names in ruby have to start with a capital letter. So in the "Ruby in 100 minutes" exercise, the code example has "class Sample" -- not "class sample" ! If you are getting an error like:
NameError: undefined local variable or method `sample_hello' for main:Object
from (irb):1
from C:/RailsInstaller/Ruby1.9.3/bin/irb:12:in `<main>'
then edit your ruby source file my_program.rb and make sure you have a capital letter 'S' in Sample
class Sample