-
Notifications
You must be signed in to change notification settings - Fork 47
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
Time - Alex #41
base: master
Are you sure you want to change the base?
Time - Alex #41
Conversation
…roller test, and helper.
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 AwardsSummaryI'm glad you got this submitted, but it's far from feature complete. You're missing testing, and the entire upvote functionality as well as session and validations. If you push further commits up I'll be happy to look at them and give you updated feedback. |
@@ -0,0 +1,3 @@ | |||
require "test_helper" | |||
|
|||
describe HomepageController do |
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.
Missing an end
.
@@ -0,0 +1,4 @@ | |||
class Vote < ApplicationRecord |
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.
You should also include a validation to ensure the combination of user_id and work_id are unique.
class Vote < ApplicationRecord | |
class Vote < ApplicationRecord | |
validates :work_id, uniqueness: { scope: :user_id, | |
message: "You can only vote for a work once" } |
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
session
andflash
? 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
session
andflash
? What is the difference between them?