What is the closest thing to child_key from DataMapper in ActiveRecord? How would one write this using ActiveRecord?
belongs_to :something, :class_name => Foo, :child_key => [:something_id]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From what I read here :child_key is the foreign_key. In ActiveRecord you use :foreign_key.
If I have misunderstood the purpose of child_key, please let me know.