Checkbox Select Rails Plugin
November 05, 2007
I had the problem of there not being a simple form rendering solution for has_and_belongs_to_many ActiveRecord relations. I found a partial solution here: http://railshacks.blogspot.com/2007/09/helper-checkboxcollection.html
I have modified the original code slightly, and extracted it to a plugin. To install it:
In your model you are manipulating in the form:
The include is the important bit.
In your view:
In your controller add the update_check_list method:
I still need to write a collection of tests for this plugin. If you have the time please write them for me!