Allow users to create their own custom forms. Due to the dynamic nature of these forms they are stored in MongoDB.
Ruby CoffeeScript JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
vendor
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Formulatron App

This is a spike to get a working custom form builder (similar to Wufoo). The eventual goal is to pull this into its own gem.

Currently you can create forms with a number of different fields. Each of these fields has a name and a type (currently supports text fields, text areas, checkboxes and radio buttons). Checkboxes and radio buttons can also have a number of different choices.

Frontend

Currently the implentation is tied to SimpleForm. There's a bunch of javascript to make the add/remove the fields/choices. However, currently it's pretty obtrusive. It would be nice to refactor into a nicer unobtrusive solution.

Backend

All the data is stored in MongoDB (Using the Mongoid gem). The schemaless nature of MongoDB makes creating and storing these flexible forms a lot easier.