This project is archived and is in readonly mode.
Couldn't find Class with ID=#num
-
Chris Barnett
The :joins parameter adds an INNER JOIN clause to the query, which causes the database to filter out clients without a mailing_address.
Replacing :joins with :include gives the desired behaviour (by using a LEFT JOIN clause).
The error might seem misleading, but there's no way rails could tell the difference between a missing mailing_address and a missing client when :joins is used.
This ticket should probably be closed.
-
Pratik
- State changed from new to invalid