Hi Guys.
(I'm Asian. so my eng is very poor. sorry!)

i want to change :foreign_key on has_many :through
code is

has_many :following_members, :class_name => "Follow", :dependent
=> :destroy
has_many :followings, :foreign_key => "target_id", :through
=> :following_members, :source => :user

but return is don't used foreign_key(target_id)


i think.. solution is
1. use "find_sql"
2. def followings
but i don't like these.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to