ToQuickform creates some QuickForm codes from given data.
Add this line to your application's Gemfile:
gem 'to_quickform'
And then execute:
$ bundle
Or install it yourself as:
$ gem install to_quickform
generator = ToQuickform.YAML(yaml)
generator = ToQuickform.JSON(json)
See https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/sample.yaml
See https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/sample.json
generator.to_set_defaults
Output https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/set_defaults.txt
generator.to_create_element
Output https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/create_element.txt
generator.to_add_rule
Output https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/add_rule.txt
Bug reports and pull requests are welcome on GitHub at https://github.com/tsmsogn/to_quickform.