Displaying 1 result from an estimated 1 matches for "moduleusermaps".
Did you mean:
moduleusermap
2008 Nov 29
3
Yet another "NameError: uninitialized constant" problem
...ugh => :module_user_maps
end
=============== user.rb ===================
class User < ActiveRecord::Base
has_many :module_user_maps, :dependent => :delete_all
has_many :project_modules, :through => :module_user_maps
end
=============== module_user_maps.rb ===================
class ModuleUserMaps < ActiveRecord::Base
set_table_name "module_user_map"
belongs_to :user
belongs_to :project_module
end
So I run from the script/console (same thing happens in the server):
>> u=User.find(2)
=> #<User id: 2, first_name: "Site", last_name: "User", l...