I’m trying to teach myself Ruby(and then rails) using Pragmatic’s
“Programming Ruby” for the language part. I get the following error
`const_missing’: uninitialized constant Song (NameError)
when I try to run a two-file project built from the first example in
Sample code from Programing Ruby, page 23
def initialize(name, artist, duration)
@name = name
@artist = artist
@duration = duration
a_song = Song.new(“Pie Jesu”, “Sarah Brightman”, “234”)
Any suggestions or help much appreciated. Also suggestions for some
newbie-tolerant discussion forum.
Thanks in advance.