I have an object which has a reference to another using the :through approach.
When I perform the "show" method, the objects details are returned but not its associated objects. I've tried including the objects in the find like so:
@recipe = Recipe.includes(:quantities).find(params[:id])
but to no avail.
When I debug the code and do
@recipes.quantities
then I'm returned the correct set but the set isn't returned in the json by default. How I can make it so?