https://github.com/ekylibre/formize
Simple form DSL with dynamic interactions for Rails
https://github.com/ekylibre/formize
Last synced: about 2 months ago
JSON representation
Simple form DSL with dynamic interactions for Rails
- Host: GitHub
- URL: https://github.com/ekylibre/formize
- Owner: ekylibre
- License: mit
- Created: 2011-07-25T12:29:14.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2014-10-05T15:36:46.000Z (over 10 years ago)
- Last Synced: 2025-03-06T05:11:17.042Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 691 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= Formize
{}[http://badge.fury.io/rb/formize]
{}[https://travis-ci.org/ekylibre/formize]
{}[https://gemnasium.com/ekylibre/formize]
Form helpers. Will be integrated with SimpleForm.
== Installation
Add to your Gemfile these fllowing lines:
gem "jquery-rails" # Need to be explicitly specified
gem "formize"== Assets and configurations
Formize comes with basic scripts and stylesheets which must be included in the layout (at least at the start).=== In Rails 3.0.x
Formize requires the gem +jquery-rails+, so if you don't already use it:
rails generate jquery:install --uiThen install +formize+ in your app like +jquery-rails+:
rails generate formize:installThese previous commands install all the needed files in your +public/+ directory.
Then the files can be included with an helper:
# app/views/layouts/application.html.erb
<%= formize_include_tag -%>=== In Rails ≥ 3.1
With the asset pipeline, there is no need to run generators or copy files. So for stylesheets:
# app/assets/stylesheets/application.css
*= require formizeAnd for javascripts:
# app/assets/javascripts/application.js
*= require formize==== Default configuration file
To install the default configuration file (config/initializers/formize.rb), the generator must be run:
rails generate formize:install== Usage
TODO: Rewrite examples
=== Date
=== Datetime
=== Unroll (replacement of ComboBox)
=== MonoChoice (dynamic selector)
== Contributing to Formize {
}[http://travis-ci.org/ekylibre/formize]
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.== Copyright
Copyright (c) 2011 Brice Texier. See LICENSE.txt for
further details.