:finder_sql – single vs double quotes
This is the trickiest part of Rails I came across so far:In my has_many association I have a finder_sql that should reference the instance object id rather than the class object id. has_many :breedtypes, :finder_sql => ‘SELECT Breedtype.* FROM … WHERE (cai = #{id})’ Now, who’d ever have thought that replacing the “double” quotes I had wrapping the “Select”...