I''m having an issue when trying to use my hm:t relation. For some reason it''s using the wrong foreign key in some situations but not all. The following is the error as well as the models in question. http://pastie.textmate.org/99753 I realize i could probably simplify this by making the join column user_id rather then earner_id but i have a reason for this and I''m also learning a lot more by trying to do it this way. Thanks in advance for any help. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Koalemos wrote:> I''m having an issue when trying to use my hm:t relation. For some > reason it''s using the wrong foreign key in some situations but not > all. The following is the error as well as the models in question. > > http://pastie.textmate.org/99753 > > I realize i could probably simplify this by making the join column > user_id rather then earner_id but i have a reason for this and I''m > also learning a lot more by trying to do it this way. > > Thanks in advance for any help.Looks like a bug: http://dev.rubyonrails.org/ticket/5976 -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---