Displaying 1 result from an estimated 1 matches for "stuff_cheeses".
2006 Jan 26
0
Bug with table_name_prefix?
...def self.table_name_prefix
"stuff_"
end
end
class CountyController < ApplicationController
def index
@counties = County.find( :all, :include => [ :cheeses ] )
end
end
Loading /county/index gives the following error.
PGError: ERROR: column stuff_cheeses.stuff_county_id does not exist.
Note that it is putting the table_name_prefix before the foreign key in the
cheeses table, and it is this that I consider to the the bug. It doesn''t
happen if I don''t use eager loading in the controller, that is, I can access a
county''...