view for has_many and belongs_to but with only one associated record

Restaurant Load (1.5ms) SELECT * FROM "restaurants" INNER JOIN "restaurant_branches" ON "restaurant_branches"."restaurant_id" = "restaurants"."restaurant_id"

Which Rails query are you using for getting the output?

Have you checked by using count whether there are in fact two records returned and this is not just a figment of the logging? If there are two then also include restaurant_branches.id and I think you will find there are in fact two branches.

Colin