Created
March 23, 2012 15:47
-
-
Save THUFIR/2171996 to your computer and use it in GitHub Desktop.
dwmethys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thufir@dur:~/ruby/dwemthys$ | |
thufir@dur:~/ruby/dwemthys$ ruby creatures.rb | |
/home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- Creature (LoadError) | |
from /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from creatures.rb:2:in `<main>' | |
thufir@dur:~/ruby/dwemthys$ | |
thufir@dur:~/ruby/dwemthys$ cat creatures.rb | |
require 'rubygems' | |
require 'Creature' | |
thufir@dur:~/ruby/dwemthys$ | |
thufir@dur:~/ruby/dwemthys$ cat Creature.rb | |
require 'rubygems' | |
require 'active_record' | |
class Creature < ActiveRecord::Base | |
attr_accessor :life, :strength, :charisma, :weapon | |
end | |
thufir@dur:~/ruby/dwemthys$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment