I’m new to Ruby on Rails and I’m working on a simple app that manages
serial numbers/product keys for software.
I have three models and database tables setup:
I’ve setup a view that shows each category on its own page. On a
category page, I’d like to have listed all of the products that belong
to that category along with all of the serial numbers that belong to
While I’m able to properly list all the products, I have no clue how to
display a list of serials for each product.
I’ve added has_many() and belongs_to() in my models and setup foreign
keys in my database tables.
Any help would be appreciated. Thanks.