Displaying 1 result from an estimated 1 matches for "person_kinds".
2006 Jan 04
8
Trying to display data from two tables
...bed 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
Controllers;
class PersonAdminController < ApplicationController
def list
@person_pages, @people =...