Displaying 1 result from an estimated 1 matches for "countycontroller".
Did you mean:
countrycontroller
2006 Jan 26
0
Bug with table_name_prefix?
...belongs_to :county
def self.table_name_prefix
"stuff_"
end
end
class County < ActiveRecord::Base
##
## id SERIAL
## name VARCHAR(32)
##
has_many :cheeses
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 be...