Time - Corinna#35
Conversation
…ated user controller for index
…lay if temperatures aren't included in the pizza entry
…mperature dropdown if no temperature has been provided and updated top pizza page
…pdated seeds accordingly
beccaelenzil
left a comment
There was a problem hiding this comment.
Great job overall! Your implementation matches the demo site very closely, and the learning goals for this assignment were definitely met. I've left a few in-line comments for you to review. I love that you made it your own. Yummmm pizza. Keep up the hard work!
| <table class="table"> | ||
| <thead> | ||
| <tr> | ||
| <th width="80">Votes</th> |
There was a problem hiding this comment.
You have the same code to show a list of works repeated 3 times. Could you use a view partial or a loop to DRY this up?
| end | ||
|
|
||
| def show | ||
| pizza_id = params[:id] |
There was a problem hiding this comment.
consider adding a controller filter find_pizza to DRY up your code.
| if @pizza.vote_count.nil? | ||
| @pizza.vote_count = 1 | ||
| else | ||
| @pizza.vote_count += 1 | ||
| end |
There was a problem hiding this comment.
Consider moving these few lines of logic into a custom model method.
Media RankerFunctional Requirements: Manual Testing
Major Learning Goals/Code Review
Previous Rails learning, Building Complex Model Logic, DRYing up Rails Code
Testing Rails Apps
Overall Feedback
Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
|
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
sessionandflash? What is the difference between them?Assignment Submission: Media Ranker
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
Reflection
sessionandflash? What is the difference between them?