On a Rails3 project , I have a requirement where i have to build the form based on the fields & labels that are already saved in the database and i want to save the values in to other tables with other associated records with FORM_FIELD id.
I have a table FORM_FIELDS( name , label ,field_type ) with name of the field , label and its type like text_area ,text_field , integer etc.
I want to build the FORM with fields that will have name , label and type based on the records i choose from the FORM_FIELDS table.
How do i build this form Syntactically correct? , Can anyone please help me out with this design?