-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fire - Ayesha's Media ranker submission #55
base: master
Are you sure you want to change the base?
Conversation
Media RankerGreat work! There are certainly a couple broken pieces and a couple things missing but you got login and vote working (which require understanding of the biggest new concepts we introduced) and wrote some good model tests! You built a whole site users can log into, interact with, and vote to change the way things are ordered! That's a lot! I hope you've been able to celebrate this big win! Functional 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...?)
|
end | ||
|
||
def update | ||
if @work.nil? |
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.
@work will always be nil here because it's scope doesn't carry over from the other methods from previous requests.
The same two lines you have at the top of the show action belong at the top of this action and the destroy action.
if @work.nil? | |
work_id = params[:id] | |
@work = Work.find_by(id: work_id) | |
if @work.nil? |
get 'users/login_form' | ||
get 'users/login' |
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.
Are these meant to be here? I don't believe these are doing anything without a to
argument.
# frozen_string_literal: true | ||
|
||
class VotesController < ApplicationController | ||
def create |
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.
This isn't being called anywhere so it would be cleaner to delete it.
If it isn't clear that Vote.create()
doesn't call this method, that's definitely something worth chatting with a classmate, instructor, or TA about to get clarity on.
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?