Re: What's the Model Association for a Lookup Table

2008-12-13 Thread Rob Wilkerson
Rob Wilkerson wrote: > I have a vendors table that contains a field named "address_id" that > is a foreign key to addresses.id. If I define the models as shown > below then I'm unable to request a scaffolded version of /vendors/ > without getting an error: "Unknown column 'Address.vendor_id' in '

What's the Model Association for a Lookup Table

2008-12-13 Thread Rob Wilkerson
I have a vendors table that contains a field named "address_id" that is a foreign key to addresses.id. If I define the models as shown below then I'm unable to request a scaffolded version of /vendors/ without getting an error: "Unknown column 'Address.vendor_id' in 'on clause'". I don't want a "