Skip to content

Instantly share code, notes, and snippets.

@TvL2386
Last active December 20, 2015 09:59
Show Gist options
  • Save TvL2386/6112531 to your computer and use it in GitHub Desktop.
Save TvL2386/6112531 to your computer and use it in GitHub Desktop.
In rails 3.2 development, running Foo::Bar.say_hi in the console gives: NoMethodError: undefined method `say_hi' for Foo::Bar:Module
module Foo
module Bar
def self.say_hi
puts "hi"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment