search for: rank_id

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

Did you mean: bank_id
2006 Jan 03
6
Am I going too far or Rails is just confusing? was {validates_presence_of *_id attributes}
...MySQL ----- create database testdb; create table ranks (id tinyint unsigned not null auto_increment, description varchar(50) not null unique, primary key(id)); create table customers (id mediumint unsigned not null auto_increment, name varchar(50) not null, phone varchar(25), address varchar(50), rank_id tinyint unsigned not null, primary key(id), foreign key (rank_id) references ranks(id)); Leave the tables blank. This is intentional. Rails ----- > rails myapp > cd myapp > ruby script\server > ruby script\generate scaffold rank ''admin/ranks'' > ruby script\generat...