-
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
Edges Chantelle MediaRanker_Revisited #21
base: master
Are you sure you want to change the base?
Conversation
…from_github(auth_hash) method
…/application.html.erb
…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
MediaRanker RevistedWhat We're Looking For
|
|
||
redirect_to root_path | ||
end | ||
end |
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 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." |
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.
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?
No description provided.