Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc for use dynamic form and save data #5

Open
fercreek opened this issue Sep 20, 2019 · 5 comments
Open

Doc for use dynamic form and save data #5

fercreek opened this issue Sep 20, 2019 · 5 comments

Comments

@fercreek
Copy link

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.

@jasl
Copy link
Member

jasl commented Sep 21, 2019

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
Copy link
Member

jasl commented Sep 21, 2019

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

@fercreek
Copy link
Author

fercreek commented Oct 4, 2019

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

@fercreek
Copy link
Author

fercreek commented Oct 5, 2019

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?

@jasl
Copy link
Member

jasl commented Oct 5, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants