Topic: Creation Form View / Controller
I'm currently new to rails and I'm trying to convert one of my PHP applications to rails and I need some help creating a form for my model.
I have a Patten which has many PattenSpecs which contains 1 color and 1 material.
I create Materials and Colors in the scaffolded forms but I have no clue about how to create a form for the Pattern.
The form should ask for the properties of the Pattern Modell and create several PatternSpecs containing 1 existing color and 1 existing material.
Rel:
Pattern has_many PatternSpecs
PatternSpecs has_one Color
PatternSpecs has_one Material
Color has_many PatternSpecs
Material has_many PatterSpecs
Something like this
http://dl.dropbox.com/u/32242733/patternform.png