2

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?

Rohit A.
  • 1,775
  • 2
  • 11
  • 9

1 Answers1

0

Use formtastic gem for doing this on the fly.

VivekVarade123
  • 3,564
  • 4
  • 24
  • 31
  • but fortastic works only with For_for and not form_tag . Or is it not the case?? thats the reason i didnt research further on it! and the form data collected from this form will be saved over two tables. – Rohit A. Jun 18 '11 at 11:32