I have a requirement where i need to create form with dynamic attributes but i am stuck with the way to proceed. Actually my requirement is similar to a CMS. I am using devise for authentication and once the user is authenticated. I need to list a names of the collection that the user has so far created. And clicking on the new button should take the user to the form where he should be able to give the field_names ( first_name, last_name, age ) and type of the field ( string, string, integer ) and on adding all those required he can save and which would take to the another page where the fields added should be displayed as the column name and the user should be able to add values to the column. How can i do this?
I hope you can understand my requirement. If you have any question or if you cannot understand i can explain you more.