Displaying 1 result from an estimated 1 matches for "def_class".
Did you mean:
pdef_class
2006 Sep 27
3
uninitialized constant problem
I have two models in the modesl directory, say ABC.rb and DEF.rb
ABC.rb:
class AbcClass < ActiveRecord::Base
......
hello = Hash.new()
hello = DefClass.new #<---here is the error occur
......
DEF.rb:
class DefClass < ActiveRecord::Base
......
....
Do I missing anything important to create the instance?? Thanks
--
Posted via http://www.ruby-forum.com/.