rails/rails — Issue #3543: empty id include bug
Author: khoan
Created: 2011-11-07 05:57:39+00:00
State: open

When a table has no ids and you're including association, sql generated normally includes "table_name"."id", but since there's no id, sql will generate "table_name"."" which obvious does not exist and everything blows up.

I've created an app to demonstrate https://github.com/khoan/empty_id_include_bug

the README is a console session demonstrating the bug.