Hello,
I'm thinking about an idea for something, as well as learning Ruby on Rails (easy eh :) ). I want something to allow a user to generate forms as templates, then assign these templates as forms in a location in a tree hierarchy, then allow users to fill in instances of these forms and save the data.
So, I've got two different thoughts as how to structure the data. I'm currently thinking a template will have one or more sections, and a section will have one or more fields and the field will then have attributes (type, color, position, validation etc).
So, should this be described as linked tables ;
field belongs_to_a section belongs_to_a template
or should I have one template table, that has a field called body that can be serialized in and out to XML or something to render ?
<template>
<section>
<field attrib=foo attrib2=bar><field>
</section>
<template>
Any ideas or comments welcome, even if I'm totally on the wrong track....