-
Notifications
You must be signed in to change notification settings - Fork 3
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
Review #36
base: review
Are you sure you want to change the base?
Conversation
Comments
Authentication Working With Bcrypt and oAuth2
Fix Minor Bugs
Fix Comment Ajax Call
belongs_to :response | ||
|
||
validates :user, uniqueness: { scope: :response, | ||
message: "User can only vote on this response once."} |
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.
Nice use of scope
Tests and seeding are failing - it looks like a migration to add a "caption" column to questions might be missing? Or have you edited an old migration then re-run the db:create db:migrate steps? Questions table has no caption column but both seeds and specs expect it to exist. |
def destroy | ||
@question.destroy | ||
|
||
redirect_to questions_url, notice: 'Question was successfully destroyed.' |
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.
Handle failure here, even if you think it very unlikely. You are telling the user the question was destroyed. What if the delete failed for some reason?
No description provided.