Just started...
Added more books to products. Now there are 9 in total.
Made quite a few changes such that products now have owners, in other words, when a new book is created, the user who is currently logged in becomes the owner of that book. Also only those books belonging to the the currently logged in user are listed. The only exception to this is the admin user, who still can see all the products.
1. migrate/add_user_id_to_products.rb
2. models/product.rb (belongs_to :users), models/user.rb (has_many :products)
3. controllers/products_controller.rb
4. db/seeds.rb (4 users: admin, dave, mary, and john; 9 books)