[Rails] Re: No Method error

Alana
Fri, 07 Apr 2006 16:25:18 -0000

Hi Ben,

tblregisteredphone definitely has data in it. The model for it is as
follows:

    class Tblregisteredphone < ActiveRecord::Base
	belongs_to :tbluser,

	set_primary_key(:TblRegisteredPhonesID)
    end

The model for the table it is related to (tbluser) is as follows:

   class Tbluser < ActiveRecord::Base
	has_many :tblregisteredphones

	set_primary_key(:TblUsersID)
   end

Thanks for your help,