You doing well on has_many and belong_to, you also learn how to use has_many through.
Nice validation code on models.
You look confident using where and order, happy to see these lines of code.
Nice gem impressionist for counting views.
Suggestions:
We don't need always to use global variable @var, just use when necessary.
Overall, your submission is excellent. We are really happy and appreciate when you really push efforts to do the homework. Please keep it up :dancer:, if you have time please try to challenge yourself with all optional features :+1:
Thank for your submission :100:.
Goals of this homework:
_path
methods in controller and view files..where
..order
method (reference here).has_many
andbelong_to
.Great stuff:
current_order
.before_save :update_subtotal
.has_many
andbelong_to
, you also learn how to usehas_many through
.where
andorder
, happy to see these lines of code.impressionist
for counting views.Suggestions:
@var
, just use when necessary.Overall, your submission is excellent. We are really happy and appreciate when you really push efforts to do the homework. Please keep it up :dancer:, if you have time please try to challenge yourself with all optional features :+1: