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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11 Mar 2008, at 15:11, flaubert wrote:> > 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> Somebody can help me? > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
yeah! it all ok... I Can´t understand why this happens! On 11 mar, 13:23, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 11 Mar 2008, at 15:11, flaubert wrote: > > > > > > > > > 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 > > > > > Somebody can help me?- Ocultar texto entre aspas - > > - Mostrar texto entre aspas -- Ocultar texto entre aspas - > > - Mostrar texto entre aspas ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---