I’m using a find with a :joins clause, like this:
:joins => “JOIN table_b ON table_b.id=table_b_id”
The records returned are used in a scaffold generated list page. The
show, and destroy links are getting the wrong id. They are getting the
the table b record.
When I run the query using mysql, I see that the query returns 2 id
columns, the id of the main table, and the id of the join table. The
returned have only one id, and apparently its the last one. It would be
better for it to be the first one.
Any suggestions for me?
This is used with paginate.
I think I’m using the native ruby mysql adapter, as compared to the c