Displaying 1 result from an estimated 1 matches for "uniq_index".
2006 Jul 02
5
Question about setting field values for a belongs_to model
...--
Following are
1. mysql table definitions
2. method update in ApplicantController
3. rhtml file, app/views/applicant/edit.rhtml
4. Applicant and Skill models
create table if not exists applicants (
id int not null auto_increment,
name varchar(20) not null,
primary key(id),
unique index uniq_index(id)
);
create table if not exists skills (
id int not null auto_increment,
applicant_id int not null,
description varchar(30) not null,
primary key(id),
unique index uniq_index(id)
);
class ApplicantController < ApplicationController
:
: methods generated by scaffold
:
def update...