RoR app - 3 models. Create product, give it a category, sort by category with jQuery.