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

goeun / edges / media ranker 2.0 #37

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

Conversation

goeunpark
Copy link

No description provided.

@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 no
Completed OAuth yes
Basic Authorization (who can see what) good start but incomplete
Overall Good work overall. Make sure to review authorization - this is an important topic, but we won't be spending much more time on it in class.


def destroy
session[:user_id] = nil
flash[:success] = "Successfully logged out!"

Choose a reason for hiding this comment

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

Do you need both destroy and logout here?

def require_login
# if @login_user.nil?
# flash[:error] = "You must be logged in to view this"
# redirect_to root_path

Choose a reason for hiding this comment

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

I love the idea of putting this in a controller filter - why is this commented out?

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