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

Don't merge - sc review #30

Open
wants to merge 79 commits into
base: review-base
Choose a base branch
from
Open

Don't merge - sc review #30

wants to merge 79 commits into from

Conversation

stevecass
Copy link

No description provided.

scottychou and others added 30 commits February 11, 2016 18:46
Update models to include associations
Add Index True to all migrations, and add best answer method to quest…
…constraints

Sc validations and constraints
if @answer.save
redirect_to question_path(@answer.question_id)
else
render @answer.question_id
Copy link
Author

Choose a reason for hiding this comment

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

Does this work?

You probably meant render "questions/show". You'd also need to set the relevant ivars that that template expects to exist

 @question = @answer.question
 @question_voters = @question.voted
 @question_comments = @question.recent_comments
 @answers = @question.answers

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.

4 participants