Displaying 1 result from an estimated 1 matches for "representative_id".
2005 Mar 30
0
Help - dependencies.rb - `const_missing': uninitialized constant
...ongs_to_many join to work (re: my
post from yesterday). I''m getting an error I can''t seem to get by.
Help?
I now have the following tables:
ORGANISATIONS:
id (primary key)
name
REPRESENTATIVES
id (primary key)
name
ORGANISATIONS_REPRESENTATIVES
organisation_id
representative_id
My models are:
class Organisation < ActiveRecord::Base
has_and_belongs_to_many :representatives
end
class Representative < ActiveRecord::Base
has_and_belongs_to_many :organisations
end
In organisations_helper.rb I have:
module OrganisationsHelper
def reps_list(organisation)
a = []...