form_core
form_core copied to clipboard
Doc for use dynamic form and save data
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.
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
You can ask any question, I'll help you as I can
Thanks! I have been busy, but in a few days I'll use this gem :)
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?
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)