form_core icon indicating copy to clipboard operation
form_core copied to clipboard

Doc for use dynamic form and save data

Open fercreek opened this issue 4 years ago • 5 comments

I want to use this gem, but there is an app example using it? If you have one I can help you with the documentation.

fercreek avatar Sep 20 '19 21:09 fercreek

You can try the dummy app (in test/dummy), it's nearly full featured.

This gem, as I known, has been used in many projects, but sadly they are all closed source

jasl avatar Sep 21 '19 07:09 jasl

You can ask any question, I'll help you as I can

jasl avatar Sep 21 '19 07:09 jasl

Thanks! I have been busy, but in a few days I'll use this gem :)

fercreek avatar Oct 04 '19 23:10 fercreek

Okay I have a question:

  • If I want to use the same models and styles, exists in command to replicate all or I need to do that from scratch?

fercreek avatar Oct 05 '19 00:10 fercreek

If the Dummy app suitable for you, you can copy these codes to your app, then you can do modify (e.g. add reference Form to User or Group, add persistence)

For styles, I use Bulma, it simple and easy to use, but may not suitable for business product, you can choose other, you need to refactor views under https://github.com/rails-engine/form_core/tree/master/test/dummy/app/views/_form_core

BTW, We actually have a stupid but super super powerful Form persistence solution, that allows you treat dynamic forms as plain native PostgreSQL tables, and we also implemented a Ransack-like query builder and aggregation with UI.

but I sold to my customers, so I can't open source, but my partner wrote a demo to show the technique, https://github.com/hooopo/schemaless-pg (although it's in Chinese, but the code really simple)

jasl avatar Oct 05 '19 07:10 jasl