1. Tasks 1-7 have been completed. Devise required to change its config and add a line to routes.
2. Admin presence is detected by checking "admin" attribute. Generated "admin?" function did not work. It' been changed to compare with 'true' boolean.
3. Added validation to Product's attributes.
4. Fixed Product spec by enclosing POST actions in context that checks which user is logged in.
5. Fixed some minor issues and done some minor code cleaning.
A

A
2.
D
C
A