Skip to content
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

Edges Chantelle MediaRanker_Revisited #21

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

BASIC-Belic
Copy link

No description provided.

…ng wasn't applying and added an image_url column to user
…nly change works they are associated with and altered corresponding controller test, midration, model method, and yaml files
@droberts-sea
Copy link

MediaRanker Revisted

What We're Looking For

Feature Feedback
General
Appropriate Tests on WorksController yes
Appropriate Tests on SessionsController yes
Appropriate Tests on UsersController yes
Completed OAuth yes
Basic Authorization (who can see what) yes
Overall Great work overall!


redirect_to root_path
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You redirect but don't return here, and then redirect again on line 40. This is a bug, and will cause Rails to throw an error! Your test coverage probably should have caught this...

def require_login
unless session[:user_id]

flash[:error] = "You must be logged in to do that."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that this is a controller filter, but you've got much the same code both here and in the users controller. Could you DRY it up further by putting this in the application controller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants