Displaying 2 results from an estimated 2 matches for "fk_skills_cv".
2006 Feb 27
6
One to Many example... please!
...mestamp(14)	not null,
	updated_on	timestamp(14)	not null
);
CREATE TABLE skills(
	id		INT		not null	AUTO_INCREMENT	PRIMARY KEY,
	title		VARCHAR(20) 	not null,
	detail		VARCHAR(200) 	not null,
	cv_id		int		not null,
	created_on	timestamp(14)	not null,
	updated_on	timestamp(14)	not null,
	constraint	fk_skills_cv	foreign key (cv_id) 	references cvs(id)
);
Now, I think the db is as it should be from what I have been able to 
gleen from Agile..., 4 days... and OnLamp...
So now I have the view for the CV in place with a link to ''Add a Skill'' 
which goes;
<%= link_to "add_skill"...
2006 Mar 04
5
has_many and belongs_to example?
Hi!
If i have 2 tables i.e. product and images and product has_many images, 
image belongs_to product - how to create _form.rhtml, new/create and 
edit/update methods in product controller, so in a single form i can add 
one product and MANY (let''s assume for now that this number is fixed) 
images for this product?
Pleeeeease help me :)
-- 
Posted via http://www.ruby-forum.com/.