Reputation: 1891
I currently found simple_form gem for rails application. I currently join the rails project and added this to existing project. After installation it creates form for new migrations with simple_form. I want to migrate all existing forms to use simple_form.
How can I accomplish existing non simple_form layout forms to use simple_form layout.
Is there any way to generate forms using console or script to make simple_form layout?
Upvotes: 2
Views: 508
Reputation: 4517
Unfortunately, I don't believe there is a generator that can translate all your other forms in to the simple_form layout for you.
If the forms you have now currently work, I would say there is no need to change them. The point of the gem is to make it easier to create new forms. Use simple_form going forward and leave the ones that work. In the future if any form breaks, rewrite it in the simple_form DSL.
Upvotes: 1