Skip to content

Instantly share code, notes, and snippets.

@THUFIR
Created March 23, 2012 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save THUFIR/2171996 to your computer and use it in GitHub Desktop.
Save THUFIR/2171996 to your computer and use it in GitHub Desktop.
dwmethys
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