Created
August 24, 2017 22:52
-
-
Save staycreativedesign/32274124f3d2de3faed3023ba5038b48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Failures: | |
| 1) member logs in missing questionnaire | |
| Failure/Error: raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}" | |
| ActionController::RoutingError: | |
| No route matches [POST] "/questionnaire_answers/1/new" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %h1 | |
| questionnaires#edit | |
| = form_for :questionnaire_answer do |f| | |
| - @questionnaire.questions.each.with_index do |q, index| | |
| %h1 | |
| = q.description | |
| = f.fields_for :questions, q do |question_fields| | |
| = question_fields.fields_for :answer, q.build_answer do |answer_fields| | |
| = answer_fields.text_field :description, id: q.id | |
| = f.submit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resources :questionnaire_answers, except: [:new, :create] do | |
| member do | |
| get 'new' | |
| post 'create' | |
| end | |
| end | |
| questionnaire_answer GET /questionnaire_answers/:id/new(.:format) questionnaire_answers#new | |
| POST /questionnaire_answers/:id/create(.:format) questionnaire_answers#create |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment