Surveys Crash on Free Response with multiple answers #1

Open
mark-d-holmberg opened this Issue Apr 25, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@mark-d-holmberg
Owner

mark-d-holmberg commented Apr 25, 2012

Issue: SurveysController (create,update)

If a Survey is created that allows a Free Response to the question, the application will choke if you add more than one Answer to that Question. The Controller should check each question to see if it allows for a free response, and if so, check how many answers were supplied for this question. If it is more than one, it should return an error and render :edit.

Notes:

Since a question cannot be valid without an answer, if you want to make a question that has a Free Response, you must supply exactly one answer to that question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment