has_many :through problem

Hello all,

I have the following structure,

a Profile model which has_many :knowledges, :through
=> :knowledges_profiles
a Knowledge model has_many :profiles, :through => :knowledges_profiles
and KnowledgeProfile model, and a table knowledges_profiles which is
setted by set_table_name ...

in the console, when I find the profile 1, I see the "knowledge_ids"
and "knowledges" methods but I can call them, cause it returns an
error that can´t find the HasManyThrough Association
knowledges_profiles in the profile model.

Somebody can help me?

Hello all,

I have the following structure,

a Profile model which has_many :knowledges, :through
=> :knowledges_profiles
a Knowledge model has_many :profiles, :through => :knowledges_profiles
and KnowledgeProfile model, and a table knowledges_profiles which is
setted by set_table_name ...

in the console, when I find the profile 1, I see the "knowledge_ids"
and "knowledges" methods but I can call them, cause it returns an
error that can´t find the HasManyThrough Association
knowledges_profiles in the profile model.

does KnowledgeProfile (it's super awesome if you can come up with a
better name for things like this) has the right associations
(belongs_to profile & knowledge).

Fred

yeah! it all ok... I Can´t understand why this happens!