search for: personkind_id

Displaying 1 result from an estimated 1 matches for "personkind_id".

2006 Jan 04
8
Trying to display data from two tables
...trying to display data that is linked from two tables using the Active Record naming conventions, as described in Agile Web book. The stripped-down basics; Database drop table if exists people; CREATE TABLE `people` ( `id` int(6) NOT NULL auto_increment, `lastname` varchar(30) NOT NULL, `personkind_id` int(6) NOT NULL default ''23'', PRIMARY KEY (`id`) ) drop table if exists person_kinds; CREATE TABLE `person_kinds` ( `id` int(6) NOT NULL auto_increment, `kind` varchar(30) NOT NULL, PRIMARY KEY (`id`) ) ########################### Using ruby script/generate scaffold...