Just note that you have to tell it the class_name and foreign_key of the association since it can't be directly inferred form "all_posts".
foreign_key won't be necessary if it's user_id.
-Pratik
Just note that you have to tell it the class_name and foreign_key of the association since it can't be directly inferred form "all_posts".
foreign_key won't be necessary if it's user_id.
-Pratik