rails app that associates products and categories