I’m working on a couple of user input forms – one data entry, one
search – where I’d like to start off by displaying only top-level
categories. Then, if a user checked one of the top-level categories,
all the child categories would show for that top-level one.
(Displaying all the child categories for every parent would be a bit
overwhelming, it’s a large list.)
I can see how to do this by making the category name a clickable link,
and using link_to_remote, but that’s not an expected UI for a form.
I’d rather use a check box, but I’d like to avoid trying to write my
own non-Rails-assisted Ajax from scratch if possible.
Thanks.