You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alert: This gem is used internally at DOBT, and might not be perfect for your implementation. We recommend forking this repository and using it as a starting point. It's hard to gem-ify this stuff without integrating it into your app completely.
Formbuilder.rb
Formbuilder.rb is a Rails Engine that's designed as a compliment to Formbuilder.js, a library that lets your users create their own webforms inside of your application.
Since Formbuilder.rb is a fairly non-trial piece of software, it's important to understand its components and how it works:
We add ResponseField, EntryAttachment, and Form models to your application. (Each type of response field (text, checkboxes, dropdown, etc.) uses STI, inheriting from the ResponseField model.)
You include Formbuilder::Entry in an existing model.
We add a few classes to help you render forms and entries.
Note: All Formbuilder models and classes are namespaced within the Formbuilder module.
If you have a few moments, consider reading the source, especially the Rails app in spec/dummy, as it should give you a good idea of how Formbuilder integrates.