Take a look at this:
http://jrhicks.net/Projects/rails/has_many_and_belongs_to_many.pdf
A google search for “has and belongs to many checkbox” (w/o quotes when
put into
search) turns up a couple other urls that may be of interest. One of
which
points to the rails Wiki.
Curtis