Space - Chelsea#30
Conversation
…or and the space between buttons to be fixed
…T sorted by votes
…ling to the columns
…method in work model
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...?)
|
kaidamasaki
left a comment
There was a problem hiding this comment.
Good job! There were a few missed things but well done overall. 😃
|
|
||
| @import "**/*"; | ||
|
|
||
| .orange-header{ |
There was a problem hiding this comment.
You shouldn't have class names refer to things like colors in them. They should be named based on what the sections mean.
(An example from your code of something with a good class name is "spotlight".)
| .orange-header{ | ||
| font-weight: bold; | ||
| font-size: 34px; | ||
| color: #ff5721 !important; |
There was a problem hiding this comment.
You really should avoid using !important if you can.
Especially in production code. It will cause headaches if other users are trying to make styles work with yours. You should rely on precedence instead.
| work_id = params[:id] | ||
| @work = Work.find_by(id: work_id) | ||
| if @work.nil? | ||
| redirect_to root_path | ||
| return | ||
| end |
There was a problem hiding this comment.
This is the kind of code that makes sense to put in a controller filter.
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?