-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tanja Stroble -- Media Ranker ^Carets^ #28
base: master
Are you sure you want to change the base?
Conversation
Media RankerWhat We're Looking For
|
Overall, I think you did a good job with the project and a GREAT job with testing! I'm so proud of you! The overall functionality is great, you caught a lot of really good edge cases like blank name on the login form and if |
@@ -0,0 +1,21 @@ | |||
class Work < ApplicationRecord | |||
|
|||
CATEGORIES = ["album", "book", "movie"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am SO glad you made a CATEGORIES
constant, I wish more people did this :)
def index | ||
@works_by_category = {} | ||
Work::CATEGORIES.each do |cat| | ||
@works_by_category[cat] = Work.where(category: cat) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clever!
also, ✨ gogol bordello ✨ |
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
session
andflash
? What is the difference between them?