-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Form generator #1
Comments
A famous form generator on Rails: |
I like simpleform, in addition to formtastic. |
What is an acceptable way to implement this? I don't think we can achieve the same way of integration as those rails plugins can. Because the templating system less integrated with the framework as is the ORM. An example of how you would create forms using rubyIn ruby you have the This Because the ORM is embedded in rails the creation will only fail if certain 'model validations' failed. These also fill the So in conclusion: this is very hard with caveman. Caveman is not tightly integrated with an ORM or templating engine. The ORM it has does do any form of validations, so easy creation of objects using a form generator is hard. Also caveman does not force the use of controllers, so generating a form and using this on many webpages is also harder, as we don't know what fields to add because we don't know with what kind of class/struct/model we are working. And finally how should we pass the forms to the templates? Using variables will be very slow if a website has many forms (all forms have to be generated for each request), and other ways (custom djula tags) will mean that using other templating engines will become harder. I think to only way to have a nice form generator is to chose a real ORM and a default templating engine and become more opinionated about how applications should be formed and routed. However this would probably break compatibility, so doing this for caveman2 would be impossible. |
Linking to some CL web form validators that I didn't find easily:
|
No description provided.
The text was updated successfully, but these errors were encountered: