Checkbox Set Helper plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://rhnh.svnrepository.com/svn/public/rails/plugins/checkbox_set_helper/
1. Copy/symlink/svn:external into your vendor/plugins directory
2. rake test:plugins - Have to keep me honest ;)
3. Include 'CheckboxSetHelper' in your model
4. Add a property to your model - "checkbox_set :item_choice"
5. In your view, name your checkboxes "item_choice_#{id}", where id is the id of the option this checkbox represents. Example: item_choice_2
6. After form submission, you can access a set containing all the checked items by accessing the "item_choices" property
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago

