poptart 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/poptart/model.rb +11 -13
- data/lib/poptart/range_question.rb +1 -1
- data/lib/poptart/survey.rb +1 -2
- data/lib/poptart/survey_question.rb +8 -3
- data/lib/poptart/time_question.rb +9 -0
- data/lib/poptart/user.rb +3 -1
- data/lib/poptart.rb +1 -0
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +3 -27
- data/spec/requests/answers_spec.rb +11 -13
- data/spec/requests/user_management_spec.rb +0 -2
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +6606 -3251
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +18354 -6356
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +1223 -387
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +331 -183
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +1475 -403
- data/spec/vcr/creating/quesitons_returns_boolean_question.yml +66 -0
- data/spec/vcr/creating/quesitons_returns_multiple_question.yml +90 -21
- data/spec/vcr/creating/quesitons_returns_range_question.yml +92 -23
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question.yml +7543 -0
- data/spec/vcr/retrieving/answers_returns_answers.yml +1956 -84
- data/spec/vcr/user/management_creates_a_user.yml +26 -27
- data/spec/vcr/user/management_returns_a_user.yml +186 -63
- metadata +5 -4
- data/spec/requests/root_spec.rb +0 -11
@@ -419,6 +419,513 @@ http_interactions:
|
|
419
419
|
]
|
420
420
|
http_version:
|
421
421
|
recorded_at: Thu, 25 Sep 2014 02:29:22 GMT
|
422
|
+
- request:
|
423
|
+
method: post
|
424
|
+
uri: http://localhost:3000//api/surveys/94/survey_questions/
|
425
|
+
body:
|
426
|
+
encoding: UTF-8
|
427
|
+
string: '{"survey_question":{"question_id":8}}'
|
428
|
+
headers:
|
429
|
+
User-Agent:
|
430
|
+
- Faraday v0.9.0
|
431
|
+
Content-Type:
|
432
|
+
- application/json
|
433
|
+
Api-Token:
|
434
|
+
- testing
|
435
|
+
Accept-Encoding:
|
436
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
437
|
+
Accept:
|
438
|
+
- "*/*"
|
439
|
+
response:
|
440
|
+
status:
|
441
|
+
code: 201
|
442
|
+
message: 'Created '
|
443
|
+
headers:
|
444
|
+
X-Frame-Options:
|
445
|
+
- SAMEORIGIN
|
446
|
+
X-Xss-Protection:
|
447
|
+
- 1; mode=block
|
448
|
+
X-Content-Type-Options:
|
449
|
+
- nosniff
|
450
|
+
X-Ua-Compatible:
|
451
|
+
- chrome=1
|
452
|
+
Content-Type:
|
453
|
+
- application/json; charset=utf-8
|
454
|
+
Etag:
|
455
|
+
- '"56f4efc7af593c6e101386e72cda1257"'
|
456
|
+
Cache-Control:
|
457
|
+
- max-age=0, private, must-revalidate
|
458
|
+
X-Request-Id:
|
459
|
+
- ef15b132-147e-493e-bb06-9ef269585c62
|
460
|
+
X-Runtime:
|
461
|
+
- '0.014273'
|
462
|
+
Server:
|
463
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
464
|
+
Date:
|
465
|
+
- Thu, 25 Sep 2014 02:29:22 GMT
|
466
|
+
Content-Length:
|
467
|
+
- '517'
|
468
|
+
Connection:
|
469
|
+
- Keep-Alive
|
470
|
+
body:
|
471
|
+
encoding: UTF-8
|
472
|
+
string: |-
|
473
|
+
{
|
474
|
+
"id": 286,
|
475
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
476
|
+
"type": "boolean",
|
477
|
+
"responses": [
|
478
|
+
"t",
|
479
|
+
"f"
|
480
|
+
],
|
481
|
+
"answer": null,
|
482
|
+
"freeform": false,
|
483
|
+
"_links": {
|
484
|
+
"self": {
|
485
|
+
"href": "/api/surveys/94/survey_questions/286"
|
486
|
+
},
|
487
|
+
"post": {
|
488
|
+
"href": "http://localhost:3000/api/surveys/94/survey_questions"
|
489
|
+
},
|
490
|
+
"put": {
|
491
|
+
"href": "/api/surveys/94/survey_questions/286"
|
492
|
+
},
|
493
|
+
"survey": {
|
494
|
+
"href": "/api/surveys/94"
|
495
|
+
}
|
496
|
+
}
|
497
|
+
}
|
498
|
+
http_version:
|
499
|
+
recorded_at: Thu, 25 Sep 2014 02:29:22 GMT
|
500
|
+
- request:
|
501
|
+
method: put
|
502
|
+
uri: http://localhost:3000//api/surveys/94/survey_questions/286/
|
503
|
+
body:
|
504
|
+
encoding: UTF-8
|
505
|
+
string: '{"id":286,"survey_question":{"answer":true}}'
|
506
|
+
headers:
|
507
|
+
User-Agent:
|
508
|
+
- Faraday v0.9.0
|
509
|
+
Content-Type:
|
510
|
+
- application/json
|
511
|
+
Api-Token:
|
512
|
+
- testing
|
513
|
+
Accept-Encoding:
|
514
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
515
|
+
Accept:
|
516
|
+
- "*/*"
|
517
|
+
response:
|
518
|
+
status:
|
519
|
+
code: 204
|
520
|
+
message: 'No Content '
|
521
|
+
headers:
|
522
|
+
X-Frame-Options:
|
523
|
+
- SAMEORIGIN
|
524
|
+
X-Xss-Protection:
|
525
|
+
- 1; mode=block
|
526
|
+
X-Content-Type-Options:
|
527
|
+
- nosniff
|
528
|
+
X-Ua-Compatible:
|
529
|
+
- chrome=1
|
530
|
+
Cache-Control:
|
531
|
+
- no-cache
|
532
|
+
X-Request-Id:
|
533
|
+
- 0244411f-955a-48f4-a3e6-803f4af5ba95
|
534
|
+
X-Runtime:
|
535
|
+
- '0.010371'
|
536
|
+
Server:
|
537
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
538
|
+
Date:
|
539
|
+
- Thu, 25 Sep 2014 02:29:22 GMT
|
540
|
+
Connection:
|
541
|
+
- Keep-Alive
|
542
|
+
body:
|
543
|
+
encoding: UTF-8
|
544
|
+
string: ''
|
545
|
+
http_version:
|
546
|
+
recorded_at: Thu, 25 Sep 2014 02:29:22 GMT
|
547
|
+
- request:
|
548
|
+
method: post
|
549
|
+
uri: http://localhost:3000//api/surveys/95/survey_questions/
|
550
|
+
body:
|
551
|
+
encoding: UTF-8
|
552
|
+
string: '{"survey_question":{"question_id":8}}'
|
553
|
+
headers:
|
554
|
+
User-Agent:
|
555
|
+
- Faraday v0.9.0
|
556
|
+
Content-Type:
|
557
|
+
- application/json
|
558
|
+
Api-Token:
|
559
|
+
- testing
|
560
|
+
Accept-Encoding:
|
561
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
562
|
+
Accept:
|
563
|
+
- "*/*"
|
564
|
+
response:
|
565
|
+
status:
|
566
|
+
code: 201
|
567
|
+
message: 'Created '
|
568
|
+
headers:
|
569
|
+
X-Frame-Options:
|
570
|
+
- SAMEORIGIN
|
571
|
+
X-Xss-Protection:
|
572
|
+
- 1; mode=block
|
573
|
+
X-Content-Type-Options:
|
574
|
+
- nosniff
|
575
|
+
X-Ua-Compatible:
|
576
|
+
- chrome=1
|
577
|
+
Content-Type:
|
578
|
+
- application/json; charset=utf-8
|
579
|
+
Etag:
|
580
|
+
- '"d45ab6406a141fb693d9125b18684b63"'
|
581
|
+
Cache-Control:
|
582
|
+
- max-age=0, private, must-revalidate
|
583
|
+
X-Request-Id:
|
584
|
+
- a4d1ef9f-08f3-420b-8d71-411a30719146
|
585
|
+
X-Runtime:
|
586
|
+
- '0.021118'
|
587
|
+
Server:
|
588
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
589
|
+
Date:
|
590
|
+
- Thu, 25 Sep 2014 02:29:22 GMT
|
591
|
+
Content-Length:
|
592
|
+
- '517'
|
593
|
+
Connection:
|
594
|
+
- Keep-Alive
|
595
|
+
body:
|
596
|
+
encoding: UTF-8
|
597
|
+
string: |-
|
598
|
+
{
|
599
|
+
"id": 287,
|
600
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
601
|
+
"type": "boolean",
|
602
|
+
"responses": [
|
603
|
+
"t",
|
604
|
+
"f"
|
605
|
+
],
|
606
|
+
"answer": null,
|
607
|
+
"freeform": false,
|
608
|
+
"_links": {
|
609
|
+
"self": {
|
610
|
+
"href": "/api/surveys/95/survey_questions/287"
|
611
|
+
},
|
612
|
+
"post": {
|
613
|
+
"href": "http://localhost:3000/api/surveys/95/survey_questions"
|
614
|
+
},
|
615
|
+
"put": {
|
616
|
+
"href": "/api/surveys/95/survey_questions/287"
|
617
|
+
},
|
618
|
+
"survey": {
|
619
|
+
"href": "/api/surveys/95"
|
620
|
+
}
|
621
|
+
}
|
622
|
+
}
|
623
|
+
http_version:
|
624
|
+
recorded_at: Thu, 25 Sep 2014 02:29:22 GMT
|
625
|
+
- request:
|
626
|
+
method: put
|
627
|
+
uri: http://localhost:3000//api/surveys/95/survey_questions/287/
|
628
|
+
body:
|
629
|
+
encoding: UTF-8
|
630
|
+
string: '{"id":287,"survey_question":{"answer":false}}'
|
631
|
+
headers:
|
632
|
+
User-Agent:
|
633
|
+
- Faraday v0.9.0
|
634
|
+
Content-Type:
|
635
|
+
- application/json
|
636
|
+
Api-Token:
|
637
|
+
- testing
|
638
|
+
Accept-Encoding:
|
639
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
640
|
+
Accept:
|
641
|
+
- "*/*"
|
642
|
+
response:
|
643
|
+
status:
|
644
|
+
code: 422
|
645
|
+
message: 'Unprocessable Entity '
|
646
|
+
headers:
|
647
|
+
Content-Type:
|
648
|
+
- text/html; charset=utf-8
|
649
|
+
Content-Length:
|
650
|
+
- '17277'
|
651
|
+
X-Request-Id:
|
652
|
+
- 56e78554-2cbe-4d66-8a5f-5a7ca0a33317
|
653
|
+
X-Runtime:
|
654
|
+
- '0.025782'
|
655
|
+
Server:
|
656
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
657
|
+
Date:
|
658
|
+
- Thu, 25 Sep 2014 02:29:22 GMT
|
659
|
+
Connection:
|
660
|
+
- Keep-Alive
|
661
|
+
body:
|
662
|
+
encoding: UTF-8
|
663
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
664
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
665
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
666
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
667
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
668
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
669
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
670
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
671
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
672
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
673
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
674
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
675
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
676
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
677
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
678
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
679
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
680
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
681
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
682
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
683
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
684
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
685
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
686
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
687
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
688
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
689
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
690
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
691
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
692
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
693
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
694
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
695
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
696
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
697
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
698
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n ActiveRecord::RecordInvalid\n
|
699
|
+
\ in Api::V1::SurveyQuestionsController#update\n </h1>\n</header>\n\n<div
|
700
|
+
id=\"container\">\n <h2>Validation failed: Answer can't be blank</h2>\n\n
|
701
|
+
\ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
|
702
|
+
line <strong>#10</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
|
703
|
+
cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
|
704
|
+
class=\"line_numbers\">\n<span>8</span>\n<span>9</span>\n<span>10</span>\n<span>11</span>\n<span>12</span>\n<span>13</span>\n
|
705
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">
|
706
|
+
\ def update\n</div><div class=\"line\"> survey_question.answer = params[:survey_question][:answer]\n</div><div
|
707
|
+
class=\"line active\"> survey_question.save!\n</div><div class=\"line\">
|
708
|
+
\ respond_with survey_question, { status: :created, location: nil, show_next:
|
709
|
+
true,\n</div><div class=\"line\"> represent_with:
|
710
|
+
nil}\n</div><div class=\"line\"> end\n</div>\n</pre>\n</td>\n </tr>\n
|
711
|
+
\ </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
712
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
713
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
714
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
715
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
716
|
+
block;\">\n <pre><code>app/controllers/api/v1/survey_questions_controller.rb:10:in
|
717
|
+
`update'</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
|
718
|
+
none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
|
719
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
|
720
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
721
|
+
`block in save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
|
722
|
+
`block in with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
723
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
724
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
725
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
726
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
727
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
728
|
+
`save!'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
729
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
730
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
731
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
732
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:383:in
|
733
|
+
`_run__3589005362542623454__process_action__callbacks'\nactivesupport
|
734
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
735
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
736
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
737
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
738
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
739
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
740
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
741
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
742
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
743
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
744
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
745
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
746
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
747
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
748
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
749
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
750
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
751
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
752
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
753
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
754
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
755
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
756
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
757
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
758
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
759
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
760
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
761
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
762
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3409925208780751347__call__callbacks'\nactivesupport
|
763
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
764
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
765
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
766
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
767
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
768
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
769
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
770
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
771
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
772
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
773
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
774
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
775
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
776
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
777
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
778
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
779
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
780
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
781
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
782
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
783
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
784
|
+
style=\"display: none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
|
785
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
|
786
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
787
|
+
`block in save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
|
788
|
+
`block in with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
789
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
790
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
791
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
792
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
793
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
794
|
+
`save!'\napp/controllers/api/v1/survey_questions_controller.rb:10:in `update'\nactionpack
|
795
|
+
(4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\nactionpack
|
796
|
+
(4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
797
|
+
(4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
798
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\nactivesupport
|
799
|
+
(4.0.4) lib/active_support/callbacks.rb:383:in `_run__3589005362542623454__process_action__callbacks'\nactivesupport
|
800
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
801
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
802
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
803
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
804
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
805
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
806
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
807
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
808
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
809
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
810
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
811
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
812
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
813
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
814
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
815
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
816
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
817
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
818
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
819
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
820
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
821
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
822
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
823
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
824
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
825
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
826
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
827
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
828
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3409925208780751347__call__callbacks'\nactivesupport
|
829
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
830
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
831
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
832
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
833
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
834
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
835
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
836
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
837
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
838
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
839
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
840
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
841
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
842
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
843
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
844
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
845
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
846
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
847
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
848
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
849
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
850
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"287",\n
|
851
|
+
"survey_question"=>{"answer"=>false},\n "format"=>"json",\n
|
852
|
+
"survey_id"=>"95"}</pre>\n\n<div class=\"details\">\n
|
853
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
|
854
|
+
session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
|
855
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
856
|
+
toggleEnvDump()\">Toggle env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
857
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
858
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
859
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
860
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
861
|
+
http_version:
|
862
|
+
recorded_at: Thu, 25 Sep 2014 02:29:22 GMT
|
863
|
+
- request:
|
864
|
+
method: post
|
865
|
+
uri: http://localhost:3000/api/questions/
|
866
|
+
body:
|
867
|
+
encoding: UTF-8
|
868
|
+
string: '{"question":{"question_type":"boolean","responses":[true,false],"text":"Do
|
869
|
+
you like poptarts?","freeform":false,"absolute_index":null,"parent_question_id":null}}'
|
870
|
+
headers:
|
871
|
+
User-Agent:
|
872
|
+
- Faraday v0.9.0
|
873
|
+
Content-Type:
|
874
|
+
- application/json
|
875
|
+
Api-Token:
|
876
|
+
- testing
|
877
|
+
Accept-Encoding:
|
878
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
879
|
+
Accept:
|
880
|
+
- "*/*"
|
881
|
+
response:
|
882
|
+
status:
|
883
|
+
code: 201
|
884
|
+
message: 'Created '
|
885
|
+
headers:
|
886
|
+
X-Frame-Options:
|
887
|
+
- SAMEORIGIN
|
888
|
+
X-Xss-Protection:
|
889
|
+
- 1; mode=block
|
890
|
+
X-Content-Type-Options:
|
891
|
+
- nosniff
|
892
|
+
X-Ua-Compatible:
|
893
|
+
- chrome=1
|
894
|
+
Content-Type:
|
895
|
+
- application/json; charset=utf-8
|
896
|
+
Etag:
|
897
|
+
- '"2a1a9f1e783deb60c28f0e9e93a45f43"'
|
898
|
+
Cache-Control:
|
899
|
+
- max-age=0, private, must-revalidate
|
900
|
+
X-Request-Id:
|
901
|
+
- 8ff57d1c-463c-4bae-91f3-cd4f05e8f59a
|
902
|
+
X-Runtime:
|
903
|
+
- '0.034028'
|
904
|
+
Server:
|
905
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
906
|
+
Date:
|
907
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
908
|
+
Content-Length:
|
909
|
+
- '198'
|
910
|
+
Connection:
|
911
|
+
- Keep-Alive
|
912
|
+
body:
|
913
|
+
encoding: UTF-8
|
914
|
+
string: |-
|
915
|
+
{
|
916
|
+
"id": 87,
|
917
|
+
"question_type": "boolean",
|
918
|
+
"text": "Do you like poptarts?",
|
919
|
+
"responses": [
|
920
|
+
true,
|
921
|
+
false
|
922
|
+
],
|
923
|
+
"freeform": false,
|
924
|
+
"absolute_index": null,
|
925
|
+
"parent_question_id": null
|
926
|
+
}
|
927
|
+
http_version:
|
928
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
422
929
|
- request:
|
423
930
|
method: post
|
424
931
|
uri: http://localhost:3000/api/users/
|
@@ -452,41 +959,1406 @@ http_interactions:
|
|
452
959
|
Content-Type:
|
453
960
|
- application/json; charset=utf-8
|
454
961
|
Etag:
|
455
|
-
- '"
|
962
|
+
- '"30df7ef03f50dde3a0aaf74ef0fd5844"'
|
963
|
+
Cache-Control:
|
964
|
+
- max-age=0, private, must-revalidate
|
965
|
+
X-Request-Id:
|
966
|
+
- c51175a2-b371-4d26-8590-bfd795e62013
|
967
|
+
X-Runtime:
|
968
|
+
- '0.092777'
|
969
|
+
Server:
|
970
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
971
|
+
Date:
|
972
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
973
|
+
Content-Length:
|
974
|
+
- '260'
|
975
|
+
Connection:
|
976
|
+
- Keep-Alive
|
977
|
+
body:
|
978
|
+
encoding: UTF-8
|
979
|
+
string: |-
|
980
|
+
{
|
981
|
+
"service_user_id": "765380efe7e7b3e761c02d506a74c9c7f5118d555062311884130e4810e4f5c0",
|
982
|
+
"_links": {
|
983
|
+
"self": {
|
984
|
+
"href": "http://localhost:3000/api/users/93"
|
985
|
+
}
|
986
|
+
},
|
987
|
+
"token": "54dad9c3178e033c70a8e49b2bbb977720854ff82cd5428096f4b8ee3669d7c6"
|
988
|
+
}
|
989
|
+
http_version:
|
990
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
991
|
+
- request:
|
992
|
+
method: post
|
993
|
+
uri: http://localhost:3000/api/surveys/
|
994
|
+
body:
|
995
|
+
encoding: UTF-8
|
996
|
+
string: '{"survey":{"service_user_id":"765380efe7e7b3e761c02d506a74c9c7f5118d555062311884130e4810e4f5c0"}}'
|
997
|
+
headers:
|
998
|
+
User-Agent:
|
999
|
+
- Faraday v0.9.0
|
1000
|
+
Content-Type:
|
1001
|
+
- application/json
|
1002
|
+
Api-Token:
|
1003
|
+
- testing
|
1004
|
+
Accept-Encoding:
|
1005
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1006
|
+
Accept:
|
1007
|
+
- "*/*"
|
1008
|
+
response:
|
1009
|
+
status:
|
1010
|
+
code: 201
|
1011
|
+
message: 'Created '
|
1012
|
+
headers:
|
1013
|
+
X-Frame-Options:
|
1014
|
+
- SAMEORIGIN
|
1015
|
+
X-Xss-Protection:
|
1016
|
+
- 1; mode=block
|
1017
|
+
X-Content-Type-Options:
|
1018
|
+
- nosniff
|
1019
|
+
X-Ua-Compatible:
|
1020
|
+
- chrome=1
|
1021
|
+
Content-Type:
|
1022
|
+
- application/json; charset=utf-8
|
1023
|
+
Etag:
|
1024
|
+
- '"d7c40e6ddf703accefe13658be527676"'
|
1025
|
+
Cache-Control:
|
1026
|
+
- max-age=0, private, must-revalidate
|
1027
|
+
X-Request-Id:
|
1028
|
+
- a71327b0-fdb0-4308-ab10-85832547fc1d
|
1029
|
+
X-Runtime:
|
1030
|
+
- '0.072480'
|
1031
|
+
Server:
|
1032
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1033
|
+
Date:
|
1034
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
1035
|
+
Content-Length:
|
1036
|
+
- '430'
|
1037
|
+
Connection:
|
1038
|
+
- Keep-Alive
|
1039
|
+
body:
|
1040
|
+
encoding: UTF-8
|
1041
|
+
string: |-
|
1042
|
+
{
|
1043
|
+
"id": 96,
|
1044
|
+
"service_user_id": "765380efe7e7b3e761c02d506a74c9c7f5118d555062311884130e4810e4f5c0",
|
1045
|
+
"_links": {
|
1046
|
+
"self": {
|
1047
|
+
"href": "http://localhost:3000/api/surveys/96"
|
1048
|
+
},
|
1049
|
+
"survey_questions": {
|
1050
|
+
"post": {
|
1051
|
+
"href": "/api/surveys/96/survey_questions"
|
1052
|
+
},
|
1053
|
+
"put": {
|
1054
|
+
"href": "/api/surveys/96/survey_questions"
|
1055
|
+
}
|
1056
|
+
}
|
1057
|
+
},
|
1058
|
+
"completed": false,
|
1059
|
+
"survey_questions": [
|
1060
|
+
|
1061
|
+
]
|
1062
|
+
}
|
1063
|
+
http_version:
|
1064
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
1065
|
+
- request:
|
1066
|
+
method: post
|
1067
|
+
uri: http://localhost:3000//api/surveys/96/survey_questions/
|
1068
|
+
body:
|
1069
|
+
encoding: UTF-8
|
1070
|
+
string: '{"survey_question":{"question_id":87}}'
|
1071
|
+
headers:
|
1072
|
+
User-Agent:
|
1073
|
+
- Faraday v0.9.0
|
1074
|
+
Content-Type:
|
1075
|
+
- application/json
|
1076
|
+
Api-Token:
|
1077
|
+
- testing
|
1078
|
+
Accept-Encoding:
|
1079
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1080
|
+
Accept:
|
1081
|
+
- "*/*"
|
1082
|
+
response:
|
1083
|
+
status:
|
1084
|
+
code: 201
|
1085
|
+
message: 'Created '
|
1086
|
+
headers:
|
1087
|
+
X-Frame-Options:
|
1088
|
+
- SAMEORIGIN
|
1089
|
+
X-Xss-Protection:
|
1090
|
+
- 1; mode=block
|
1091
|
+
X-Content-Type-Options:
|
1092
|
+
- nosniff
|
1093
|
+
X-Ua-Compatible:
|
1094
|
+
- chrome=1
|
1095
|
+
Content-Type:
|
1096
|
+
- application/json; charset=utf-8
|
1097
|
+
Etag:
|
1098
|
+
- '"ef3129edfcf6e491898bb9a5afb130d4"'
|
1099
|
+
Cache-Control:
|
1100
|
+
- max-age=0, private, must-revalidate
|
1101
|
+
X-Request-Id:
|
1102
|
+
- 1b03a347-991b-4548-9bc9-81a712b789b0
|
1103
|
+
X-Runtime:
|
1104
|
+
- '0.025881'
|
1105
|
+
Server:
|
1106
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1107
|
+
Date:
|
1108
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
1109
|
+
Content-Length:
|
1110
|
+
- '460'
|
1111
|
+
Connection:
|
1112
|
+
- Keep-Alive
|
1113
|
+
body:
|
1114
|
+
encoding: UTF-8
|
1115
|
+
string: |-
|
1116
|
+
{
|
1117
|
+
"id": 288,
|
1118
|
+
"text": "Do you like poptarts?",
|
1119
|
+
"type": "boolean",
|
1120
|
+
"responses": [
|
1121
|
+
"t",
|
1122
|
+
"f"
|
1123
|
+
],
|
1124
|
+
"answer": null,
|
1125
|
+
"freeform": false,
|
1126
|
+
"_links": {
|
1127
|
+
"self": {
|
1128
|
+
"href": "/api/surveys/96/survey_questions/288"
|
1129
|
+
},
|
1130
|
+
"post": {
|
1131
|
+
"href": "http://localhost:3000/api/surveys/96/survey_questions"
|
1132
|
+
},
|
1133
|
+
"put": {
|
1134
|
+
"href": "/api/surveys/96/survey_questions/288"
|
1135
|
+
},
|
1136
|
+
"survey": {
|
1137
|
+
"href": "/api/surveys/96"
|
1138
|
+
}
|
1139
|
+
}
|
1140
|
+
}
|
1141
|
+
http_version:
|
1142
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
1143
|
+
- request:
|
1144
|
+
method: put
|
1145
|
+
uri: http://localhost:3000//api/surveys/96/survey_questions/288/
|
1146
|
+
body:
|
1147
|
+
encoding: UTF-8
|
1148
|
+
string: '{"id":288,"survey_question":{"answer":true}}'
|
1149
|
+
headers:
|
1150
|
+
User-Agent:
|
1151
|
+
- Faraday v0.9.0
|
1152
|
+
Content-Type:
|
1153
|
+
- application/json
|
1154
|
+
Api-Token:
|
1155
|
+
- testing
|
1156
|
+
Accept-Encoding:
|
1157
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1158
|
+
Accept:
|
1159
|
+
- "*/*"
|
1160
|
+
response:
|
1161
|
+
status:
|
1162
|
+
code: 204
|
1163
|
+
message: 'No Content '
|
1164
|
+
headers:
|
1165
|
+
X-Frame-Options:
|
1166
|
+
- SAMEORIGIN
|
1167
|
+
X-Xss-Protection:
|
1168
|
+
- 1; mode=block
|
1169
|
+
X-Content-Type-Options:
|
1170
|
+
- nosniff
|
1171
|
+
X-Ua-Compatible:
|
1172
|
+
- chrome=1
|
1173
|
+
Cache-Control:
|
1174
|
+
- no-cache
|
1175
|
+
X-Request-Id:
|
1176
|
+
- c6a870dc-05f2-42ed-820c-ac3231fdd5c0
|
1177
|
+
X-Runtime:
|
1178
|
+
- '0.018829'
|
1179
|
+
Server:
|
1180
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1181
|
+
Date:
|
1182
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
1183
|
+
Connection:
|
1184
|
+
- Keep-Alive
|
1185
|
+
body:
|
1186
|
+
encoding: UTF-8
|
1187
|
+
string: ''
|
1188
|
+
http_version:
|
1189
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
1190
|
+
- request:
|
1191
|
+
method: post
|
1192
|
+
uri: http://localhost:3000/api/surveys/
|
1193
|
+
body:
|
1194
|
+
encoding: UTF-8
|
1195
|
+
string: '{"survey":{"service_user_id":"765380efe7e7b3e761c02d506a74c9c7f5118d555062311884130e4810e4f5c0"}}'
|
1196
|
+
headers:
|
1197
|
+
User-Agent:
|
1198
|
+
- Faraday v0.9.0
|
1199
|
+
Content-Type:
|
1200
|
+
- application/json
|
1201
|
+
Api-Token:
|
1202
|
+
- testing
|
1203
|
+
Accept-Encoding:
|
1204
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1205
|
+
Accept:
|
1206
|
+
- "*/*"
|
1207
|
+
response:
|
1208
|
+
status:
|
1209
|
+
code: 201
|
1210
|
+
message: 'Created '
|
1211
|
+
headers:
|
1212
|
+
X-Frame-Options:
|
1213
|
+
- SAMEORIGIN
|
1214
|
+
X-Xss-Protection:
|
1215
|
+
- 1; mode=block
|
1216
|
+
X-Content-Type-Options:
|
1217
|
+
- nosniff
|
1218
|
+
X-Ua-Compatible:
|
1219
|
+
- chrome=1
|
1220
|
+
Content-Type:
|
1221
|
+
- application/json; charset=utf-8
|
1222
|
+
Etag:
|
1223
|
+
- '"823e66c318e463dfef88327f4a895a52"'
|
1224
|
+
Cache-Control:
|
1225
|
+
- max-age=0, private, must-revalidate
|
1226
|
+
X-Request-Id:
|
1227
|
+
- 59ec9eeb-9a39-472d-814d-0d0f50c092fa
|
1228
|
+
X-Runtime:
|
1229
|
+
- '0.010832'
|
1230
|
+
Server:
|
1231
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1232
|
+
Date:
|
1233
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
1234
|
+
Content-Length:
|
1235
|
+
- '430'
|
1236
|
+
Connection:
|
1237
|
+
- Keep-Alive
|
1238
|
+
body:
|
1239
|
+
encoding: UTF-8
|
1240
|
+
string: |-
|
1241
|
+
{
|
1242
|
+
"id": 97,
|
1243
|
+
"service_user_id": "765380efe7e7b3e761c02d506a74c9c7f5118d555062311884130e4810e4f5c0",
|
1244
|
+
"_links": {
|
1245
|
+
"self": {
|
1246
|
+
"href": "http://localhost:3000/api/surveys/97"
|
1247
|
+
},
|
1248
|
+
"survey_questions": {
|
1249
|
+
"post": {
|
1250
|
+
"href": "/api/surveys/97/survey_questions"
|
1251
|
+
},
|
1252
|
+
"put": {
|
1253
|
+
"href": "/api/surveys/97/survey_questions"
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
},
|
1257
|
+
"completed": false,
|
1258
|
+
"survey_questions": [
|
1259
|
+
|
1260
|
+
]
|
1261
|
+
}
|
1262
|
+
http_version:
|
1263
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
1264
|
+
- request:
|
1265
|
+
method: post
|
1266
|
+
uri: http://localhost:3000//api/surveys/97/survey_questions/
|
1267
|
+
body:
|
1268
|
+
encoding: UTF-8
|
1269
|
+
string: '{"survey_question":{"question_id":87}}'
|
1270
|
+
headers:
|
1271
|
+
User-Agent:
|
1272
|
+
- Faraday v0.9.0
|
1273
|
+
Content-Type:
|
1274
|
+
- application/json
|
1275
|
+
Api-Token:
|
1276
|
+
- testing
|
1277
|
+
Accept-Encoding:
|
1278
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1279
|
+
Accept:
|
1280
|
+
- "*/*"
|
1281
|
+
response:
|
1282
|
+
status:
|
1283
|
+
code: 201
|
1284
|
+
message: 'Created '
|
1285
|
+
headers:
|
1286
|
+
X-Frame-Options:
|
1287
|
+
- SAMEORIGIN
|
1288
|
+
X-Xss-Protection:
|
1289
|
+
- 1; mode=block
|
1290
|
+
X-Content-Type-Options:
|
1291
|
+
- nosniff
|
1292
|
+
X-Ua-Compatible:
|
1293
|
+
- chrome=1
|
1294
|
+
Content-Type:
|
1295
|
+
- application/json; charset=utf-8
|
1296
|
+
Etag:
|
1297
|
+
- '"8175183450f7dee652895fee3458ab35"'
|
1298
|
+
Cache-Control:
|
1299
|
+
- max-age=0, private, must-revalidate
|
1300
|
+
X-Request-Id:
|
1301
|
+
- 84c601e8-93a4-489c-85e9-dc109d29ca75
|
1302
|
+
X-Runtime:
|
1303
|
+
- '0.018813'
|
1304
|
+
Server:
|
1305
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1306
|
+
Date:
|
1307
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
1308
|
+
Content-Length:
|
1309
|
+
- '460'
|
1310
|
+
Connection:
|
1311
|
+
- Keep-Alive
|
1312
|
+
body:
|
1313
|
+
encoding: UTF-8
|
1314
|
+
string: |-
|
1315
|
+
{
|
1316
|
+
"id": 289,
|
1317
|
+
"text": "Do you like poptarts?",
|
1318
|
+
"type": "boolean",
|
1319
|
+
"responses": [
|
1320
|
+
"t",
|
1321
|
+
"f"
|
1322
|
+
],
|
1323
|
+
"answer": null,
|
1324
|
+
"freeform": false,
|
1325
|
+
"_links": {
|
1326
|
+
"self": {
|
1327
|
+
"href": "/api/surveys/97/survey_questions/289"
|
1328
|
+
},
|
1329
|
+
"post": {
|
1330
|
+
"href": "http://localhost:3000/api/surveys/97/survey_questions"
|
1331
|
+
},
|
1332
|
+
"put": {
|
1333
|
+
"href": "/api/surveys/97/survey_questions/289"
|
1334
|
+
},
|
1335
|
+
"survey": {
|
1336
|
+
"href": "/api/surveys/97"
|
1337
|
+
}
|
1338
|
+
}
|
1339
|
+
}
|
1340
|
+
http_version:
|
1341
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
1342
|
+
- request:
|
1343
|
+
method: put
|
1344
|
+
uri: http://localhost:3000//api/surveys/97/survey_questions/289/
|
1345
|
+
body:
|
1346
|
+
encoding: UTF-8
|
1347
|
+
string: '{"id":289,"survey_question":{"answer":false}}'
|
1348
|
+
headers:
|
1349
|
+
User-Agent:
|
1350
|
+
- Faraday v0.9.0
|
1351
|
+
Content-Type:
|
1352
|
+
- application/json
|
1353
|
+
Api-Token:
|
1354
|
+
- testing
|
1355
|
+
Accept-Encoding:
|
1356
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1357
|
+
Accept:
|
1358
|
+
- "*/*"
|
1359
|
+
response:
|
1360
|
+
status:
|
1361
|
+
code: 422
|
1362
|
+
message: 'Unprocessable Entity '
|
1363
|
+
headers:
|
1364
|
+
Content-Type:
|
1365
|
+
- text/html; charset=utf-8
|
1366
|
+
Content-Length:
|
1367
|
+
- '17277'
|
1368
|
+
X-Request-Id:
|
1369
|
+
- b4239693-6bc5-43c2-b726-49dc11eb9ad5
|
1370
|
+
X-Runtime:
|
1371
|
+
- '0.055845'
|
1372
|
+
Server:
|
1373
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1374
|
+
Date:
|
1375
|
+
- Sat, 04 Oct 2014 14:43:20 GMT
|
1376
|
+
Connection:
|
1377
|
+
- Keep-Alive
|
1378
|
+
body:
|
1379
|
+
encoding: UTF-8
|
1380
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
1381
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
1382
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
1383
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
1384
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
1385
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
1386
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
1387
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
1388
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
1389
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
1390
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
1391
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
1392
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
1393
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
1394
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
1395
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
1396
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
1397
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
1398
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
1399
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
1400
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
1401
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
1402
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
1403
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
1404
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
1405
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
1406
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
1407
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
1408
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
1409
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
1410
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
1411
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
1412
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
1413
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
1414
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
1415
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n ActiveRecord::RecordInvalid\n
|
1416
|
+
\ in Api::V1::SurveyQuestionsController#update\n </h1>\n</header>\n\n<div
|
1417
|
+
id=\"container\">\n <h2>Validation failed: Answer can't be blank</h2>\n\n
|
1418
|
+
\ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
|
1419
|
+
line <strong>#10</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
|
1420
|
+
cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
|
1421
|
+
class=\"line_numbers\">\n<span>8</span>\n<span>9</span>\n<span>10</span>\n<span>11</span>\n<span>12</span>\n<span>13</span>\n
|
1422
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">
|
1423
|
+
\ def update\n</div><div class=\"line\"> survey_question.answer = params[:survey_question][:answer]\n</div><div
|
1424
|
+
class=\"line active\"> survey_question.save!\n</div><div class=\"line\">
|
1425
|
+
\ respond_with survey_question, { status: :created, location: nil, show_next:
|
1426
|
+
true,\n</div><div class=\"line\"> represent_with:
|
1427
|
+
nil}\n</div><div class=\"line\"> end\n</div>\n</pre>\n</td>\n </tr>\n
|
1428
|
+
\ </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
1429
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
1430
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
1431
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
1432
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
1433
|
+
block;\">\n <pre><code>app/controllers/api/v1/survey_questions_controller.rb:10:in
|
1434
|
+
`update'</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
|
1435
|
+
none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
|
1436
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
|
1437
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1438
|
+
`block in save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
|
1439
|
+
`block in with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1440
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
1441
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1442
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
1443
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
1444
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1445
|
+
`save!'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
1446
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
1447
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
1448
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
1449
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:383:in
|
1450
|
+
`_run__1772801917304475632__process_action__callbacks'\nactivesupport
|
1451
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1452
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
1453
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
1454
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
1455
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
1456
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
1457
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
1458
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
1459
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
1460
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
1461
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
1462
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
1463
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
1464
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1465
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1466
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
1467
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
1468
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
1469
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1470
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1471
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
1472
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
1473
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
1474
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
1475
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
1476
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
1477
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
1478
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
1479
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__2270658051568218024__call__callbacks'\nactivesupport
|
1480
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1481
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
1482
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
1483
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
1484
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
1485
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
1486
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
1487
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1488
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
1489
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1490
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
1491
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
1492
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
1493
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
1494
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
1495
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
1496
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
1497
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
1498
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
1499
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
1500
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
1501
|
+
style=\"display: none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
|
1502
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
|
1503
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1504
|
+
`block in save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
|
1505
|
+
`block in with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1506
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
1507
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1508
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
1509
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
1510
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1511
|
+
`save!'\napp/controllers/api/v1/survey_questions_controller.rb:10:in `update'\nactionpack
|
1512
|
+
(4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\nactionpack
|
1513
|
+
(4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
1514
|
+
(4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
1515
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\nactivesupport
|
1516
|
+
(4.0.4) lib/active_support/callbacks.rb:383:in `_run__1772801917304475632__process_action__callbacks'\nactivesupport
|
1517
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1518
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
1519
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
1520
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
1521
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
1522
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
1523
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
1524
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
1525
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
1526
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
1527
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
1528
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
1529
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
1530
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1531
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1532
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
1533
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
1534
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
1535
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1536
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1537
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
1538
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
1539
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
1540
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
1541
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
1542
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
1543
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
1544
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
1545
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__2270658051568218024__call__callbacks'\nactivesupport
|
1546
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1547
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
1548
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
1549
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
1550
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
1551
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
1552
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
1553
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1554
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
1555
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1556
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
1557
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
1558
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
1559
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
1560
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
1561
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
1562
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
1563
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
1564
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
1565
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
1566
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
1567
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"289",\n
|
1568
|
+
"survey_question"=>{"answer"=>false},\n "format"=>"json",\n
|
1569
|
+
"survey_id"=>"97"}</pre>\n\n<div class=\"details\">\n
|
1570
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
|
1571
|
+
session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
|
1572
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
1573
|
+
toggleEnvDump()\">Toggle env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
1574
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
1575
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
1576
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
1577
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
1578
|
+
http_version:
|
1579
|
+
recorded_at: Sat, 04 Oct 2014 14:43:20 GMT
|
1580
|
+
- request:
|
1581
|
+
method: post
|
1582
|
+
uri: http://localhost:3000/api/surveys/169/survey_questions
|
1583
|
+
body:
|
1584
|
+
encoding: UTF-8
|
1585
|
+
string: '{"survey_question":{"question_id":90}}'
|
1586
|
+
headers:
|
1587
|
+
User-Agent:
|
1588
|
+
- Faraday v0.9.0
|
1589
|
+
Content-Type:
|
1590
|
+
- application/json
|
1591
|
+
Api-Token:
|
1592
|
+
- testing
|
1593
|
+
Accept-Encoding:
|
1594
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1595
|
+
Accept:
|
1596
|
+
- "*/*"
|
1597
|
+
response:
|
1598
|
+
status:
|
1599
|
+
code: 201
|
1600
|
+
message: 'Created '
|
1601
|
+
headers:
|
1602
|
+
X-Frame-Options:
|
1603
|
+
- SAMEORIGIN
|
1604
|
+
X-Xss-Protection:
|
1605
|
+
- 1; mode=block
|
1606
|
+
X-Content-Type-Options:
|
1607
|
+
- nosniff
|
1608
|
+
X-Ua-Compatible:
|
1609
|
+
- chrome=1
|
1610
|
+
Content-Type:
|
1611
|
+
- application/json; charset=utf-8
|
1612
|
+
Etag:
|
1613
|
+
- '"46301ff2cf8e5b1df2c612f191c122c0"'
|
1614
|
+
Cache-Control:
|
1615
|
+
- max-age=0, private, must-revalidate
|
1616
|
+
X-Request-Id:
|
1617
|
+
- c793c921-6a50-442f-a994-f5e8e7f41e58
|
1618
|
+
X-Runtime:
|
1619
|
+
- '0.015298'
|
1620
|
+
Server:
|
1621
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1622
|
+
Date:
|
1623
|
+
- Sun, 05 Oct 2014 12:14:05 GMT
|
1624
|
+
Content-Length:
|
1625
|
+
- '527'
|
1626
|
+
Connection:
|
1627
|
+
- Keep-Alive
|
1628
|
+
body:
|
1629
|
+
encoding: UTF-8
|
1630
|
+
string: |-
|
1631
|
+
{
|
1632
|
+
"id": 811,
|
1633
|
+
"text": "Do you like poptarts?",
|
1634
|
+
"type": "boolean",
|
1635
|
+
"responses": [
|
1636
|
+
"t",
|
1637
|
+
"f"
|
1638
|
+
],
|
1639
|
+
"answer": null,
|
1640
|
+
"freeform": false,
|
1641
|
+
"_links": {
|
1642
|
+
"self": {
|
1643
|
+
"href": "http://localhost:3000/api/surveys/169/survey_questions/811"
|
1644
|
+
},
|
1645
|
+
"post": {
|
1646
|
+
"href": "http://localhost:3000/api/surveys/169/survey_questions"
|
1647
|
+
},
|
1648
|
+
"put": {
|
1649
|
+
"href": "http://localhost:3000/api/surveys/169/survey_questions/811"
|
1650
|
+
},
|
1651
|
+
"survey": {
|
1652
|
+
"href": "http://localhost:3000/api/surveys/169"
|
1653
|
+
}
|
1654
|
+
}
|
1655
|
+
}
|
1656
|
+
http_version:
|
1657
|
+
recorded_at: Sun, 05 Oct 2014 12:14:05 GMT
|
1658
|
+
- request:
|
1659
|
+
method: put
|
1660
|
+
uri: http://localhost:3000/api/surveys/169/survey_questions/811
|
1661
|
+
body:
|
1662
|
+
encoding: UTF-8
|
1663
|
+
string: '{"id":811,"survey_question":{"answer":true}}'
|
1664
|
+
headers:
|
1665
|
+
User-Agent:
|
1666
|
+
- Faraday v0.9.0
|
1667
|
+
Content-Type:
|
1668
|
+
- application/json
|
1669
|
+
Api-Token:
|
1670
|
+
- testing
|
1671
|
+
Accept-Encoding:
|
1672
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1673
|
+
Accept:
|
1674
|
+
- "*/*"
|
1675
|
+
response:
|
1676
|
+
status:
|
1677
|
+
code: 204
|
1678
|
+
message: 'No Content '
|
1679
|
+
headers:
|
1680
|
+
X-Frame-Options:
|
1681
|
+
- SAMEORIGIN
|
1682
|
+
X-Xss-Protection:
|
1683
|
+
- 1; mode=block
|
1684
|
+
X-Content-Type-Options:
|
1685
|
+
- nosniff
|
1686
|
+
X-Ua-Compatible:
|
1687
|
+
- chrome=1
|
1688
|
+
Cache-Control:
|
1689
|
+
- no-cache
|
1690
|
+
X-Request-Id:
|
1691
|
+
- 7e2090ca-5277-4bbc-bc73-635951f4ee98
|
1692
|
+
X-Runtime:
|
1693
|
+
- '0.013774'
|
1694
|
+
Server:
|
1695
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1696
|
+
Date:
|
1697
|
+
- Sun, 05 Oct 2014 12:14:05 GMT
|
1698
|
+
Connection:
|
1699
|
+
- Keep-Alive
|
1700
|
+
body:
|
1701
|
+
encoding: UTF-8
|
1702
|
+
string: ''
|
1703
|
+
http_version:
|
1704
|
+
recorded_at: Sun, 05 Oct 2014 12:14:05 GMT
|
1705
|
+
- request:
|
1706
|
+
method: post
|
1707
|
+
uri: http://localhost:3000/api/surveys/170/survey_questions
|
1708
|
+
body:
|
1709
|
+
encoding: UTF-8
|
1710
|
+
string: '{"survey_question":{"question_id":90}}'
|
1711
|
+
headers:
|
1712
|
+
User-Agent:
|
1713
|
+
- Faraday v0.9.0
|
1714
|
+
Content-Type:
|
1715
|
+
- application/json
|
1716
|
+
Api-Token:
|
1717
|
+
- testing
|
1718
|
+
Accept-Encoding:
|
1719
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1720
|
+
Accept:
|
1721
|
+
- "*/*"
|
1722
|
+
response:
|
1723
|
+
status:
|
1724
|
+
code: 201
|
1725
|
+
message: 'Created '
|
1726
|
+
headers:
|
1727
|
+
X-Frame-Options:
|
1728
|
+
- SAMEORIGIN
|
1729
|
+
X-Xss-Protection:
|
1730
|
+
- 1; mode=block
|
1731
|
+
X-Content-Type-Options:
|
1732
|
+
- nosniff
|
1733
|
+
X-Ua-Compatible:
|
1734
|
+
- chrome=1
|
1735
|
+
Content-Type:
|
1736
|
+
- application/json; charset=utf-8
|
1737
|
+
Etag:
|
1738
|
+
- '"2dc065d6990960530465f3df88d26c3a"'
|
1739
|
+
Cache-Control:
|
1740
|
+
- max-age=0, private, must-revalidate
|
1741
|
+
X-Request-Id:
|
1742
|
+
- b24ccaa2-79c2-4395-953d-f6212089d1b8
|
1743
|
+
X-Runtime:
|
1744
|
+
- '0.013206'
|
1745
|
+
Server:
|
1746
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1747
|
+
Date:
|
1748
|
+
- Sun, 05 Oct 2014 12:14:05 GMT
|
1749
|
+
Content-Length:
|
1750
|
+
- '527'
|
1751
|
+
Connection:
|
1752
|
+
- Keep-Alive
|
1753
|
+
body:
|
1754
|
+
encoding: UTF-8
|
1755
|
+
string: |-
|
1756
|
+
{
|
1757
|
+
"id": 812,
|
1758
|
+
"text": "Do you like poptarts?",
|
1759
|
+
"type": "boolean",
|
1760
|
+
"responses": [
|
1761
|
+
"t",
|
1762
|
+
"f"
|
1763
|
+
],
|
1764
|
+
"answer": null,
|
1765
|
+
"freeform": false,
|
1766
|
+
"_links": {
|
1767
|
+
"self": {
|
1768
|
+
"href": "http://localhost:3000/api/surveys/170/survey_questions/812"
|
1769
|
+
},
|
1770
|
+
"post": {
|
1771
|
+
"href": "http://localhost:3000/api/surveys/170/survey_questions"
|
1772
|
+
},
|
1773
|
+
"put": {
|
1774
|
+
"href": "http://localhost:3000/api/surveys/170/survey_questions/812"
|
1775
|
+
},
|
1776
|
+
"survey": {
|
1777
|
+
"href": "http://localhost:3000/api/surveys/170"
|
1778
|
+
}
|
1779
|
+
}
|
1780
|
+
}
|
1781
|
+
http_version:
|
1782
|
+
recorded_at: Sun, 05 Oct 2014 12:14:05 GMT
|
1783
|
+
- request:
|
1784
|
+
method: put
|
1785
|
+
uri: http://localhost:3000/api/surveys/170/survey_questions/812
|
1786
|
+
body:
|
1787
|
+
encoding: UTF-8
|
1788
|
+
string: '{"id":812,"survey_question":{"answer":false}}'
|
1789
|
+
headers:
|
1790
|
+
User-Agent:
|
1791
|
+
- Faraday v0.9.0
|
1792
|
+
Content-Type:
|
1793
|
+
- application/json
|
1794
|
+
Api-Token:
|
1795
|
+
- testing
|
1796
|
+
Accept-Encoding:
|
1797
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1798
|
+
Accept:
|
1799
|
+
- "*/*"
|
1800
|
+
response:
|
1801
|
+
status:
|
1802
|
+
code: 422
|
1803
|
+
message: 'Unprocessable Entity '
|
1804
|
+
headers:
|
1805
|
+
Content-Type:
|
1806
|
+
- text/html; charset=utf-8
|
1807
|
+
Content-Length:
|
1808
|
+
- '17276'
|
1809
|
+
X-Request-Id:
|
1810
|
+
- e94d8dd6-f3ef-4218-860a-8f8e25cf0936
|
1811
|
+
X-Runtime:
|
1812
|
+
- '0.025301'
|
1813
|
+
Server:
|
1814
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1815
|
+
Date:
|
1816
|
+
- Sun, 05 Oct 2014 12:14:05 GMT
|
1817
|
+
Connection:
|
1818
|
+
- Keep-Alive
|
1819
|
+
body:
|
1820
|
+
encoding: UTF-8
|
1821
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
1822
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
1823
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
1824
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
1825
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
1826
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
1827
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
1828
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
1829
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
1830
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
1831
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
1832
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
1833
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
1834
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
1835
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
1836
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
1837
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
1838
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
1839
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
1840
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
1841
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
1842
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
1843
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
1844
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
1845
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
1846
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
1847
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
1848
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
1849
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
1850
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
1851
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
1852
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
1853
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
1854
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
1855
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
1856
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n ActiveRecord::RecordInvalid\n
|
1857
|
+
\ in Api::V1::SurveyQuestionsController#update\n </h1>\n</header>\n\n<div
|
1858
|
+
id=\"container\">\n <h2>Validation failed: Answer can't be blank</h2>\n\n
|
1859
|
+
\ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
|
1860
|
+
line <strong>#10</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
|
1861
|
+
cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
|
1862
|
+
class=\"line_numbers\">\n<span>8</span>\n<span>9</span>\n<span>10</span>\n<span>11</span>\n<span>12</span>\n<span>13</span>\n
|
1863
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">
|
1864
|
+
\ def update\n</div><div class=\"line\"> survey_question.answer = params[:survey_question][:answer]\n</div><div
|
1865
|
+
class=\"line active\"> survey_question.save!\n</div><div class=\"line\">
|
1866
|
+
\ respond_with survey_question, { status: :created, location: nil, show_next:
|
1867
|
+
true,\n</div><div class=\"line\"> represent_with:
|
1868
|
+
nil}\n</div><div class=\"line\"> end\n</div>\n</pre>\n</td>\n </tr>\n
|
1869
|
+
\ </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
1870
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
1871
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
1872
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
1873
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
1874
|
+
block;\">\n <pre><code>app/controllers/api/v1/survey_questions_controller.rb:10:in
|
1875
|
+
`update'</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
|
1876
|
+
none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
|
1877
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
|
1878
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1879
|
+
`block in save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
|
1880
|
+
`block in with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1881
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
1882
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1883
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
1884
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
1885
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1886
|
+
`save!'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
1887
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
1888
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
1889
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
1890
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:383:in
|
1891
|
+
`_run__548537728060381544__process_action__callbacks'\nactivesupport (4.0.4)
|
1892
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
1893
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
1894
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
1895
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
1896
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
1897
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
1898
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
1899
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
1900
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
1901
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
1902
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
1903
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
1904
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
1905
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1906
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1907
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
1908
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
1909
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
1910
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1911
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1912
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
1913
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
1914
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
1915
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
1916
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
1917
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
1918
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
1919
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
1920
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__1103736362963642301__call__callbacks'\nactivesupport
|
1921
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1922
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
1923
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
1924
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
1925
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
1926
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
1927
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
1928
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1929
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
1930
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1931
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
1932
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
1933
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
1934
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
1935
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
1936
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
1937
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
1938
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
1939
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
1940
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
1941
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
1942
|
+
style=\"display: none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
|
1943
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
|
1944
|
+
`save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1945
|
+
`block in save!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
|
1946
|
+
`block in with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1947
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
1948
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
1949
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
1950
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
1951
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
|
1952
|
+
`save!'\napp/controllers/api/v1/survey_questions_controller.rb:10:in `update'\nactionpack
|
1953
|
+
(4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\nactionpack
|
1954
|
+
(4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
1955
|
+
(4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
1956
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\nactivesupport
|
1957
|
+
(4.0.4) lib/active_support/callbacks.rb:383:in `_run__548537728060381544__process_action__callbacks'\nactivesupport
|
1958
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1959
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
1960
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
1961
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
1962
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
1963
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
1964
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
1965
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
1966
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
1967
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
1968
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
1969
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
1970
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
1971
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1972
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
1973
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
1974
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
1975
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
1976
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1977
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
1978
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
1979
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
1980
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
1981
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
1982
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
1983
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
1984
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
1985
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
1986
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__1103736362963642301__call__callbacks'\nactivesupport
|
1987
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1988
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
1989
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
1990
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
1991
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
1992
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
1993
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
1994
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1995
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
1996
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
1997
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
1998
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
1999
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
2000
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
2001
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
2002
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
2003
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
2004
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
2005
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
2006
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
2007
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
2008
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"812",\n
|
2009
|
+
"survey_question"=>{"answer"=>false},\n "format"=>"json",\n
|
2010
|
+
"survey_id"=>"170"}</pre>\n\n<div class=\"details\">\n
|
2011
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
|
2012
|
+
session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
|
2013
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
2014
|
+
toggleEnvDump()\">Toggle env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
2015
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
2016
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
2017
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
2018
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
2019
|
+
http_version:
|
2020
|
+
recorded_at: Sun, 05 Oct 2014 12:14:05 GMT
|
2021
|
+
- request:
|
2022
|
+
method: get
|
2023
|
+
uri: http://localhost:3000/
|
2024
|
+
body:
|
2025
|
+
encoding: US-ASCII
|
2026
|
+
string: ''
|
2027
|
+
headers:
|
2028
|
+
User-Agent:
|
2029
|
+
- Faraday v0.9.0
|
2030
|
+
Content-Type:
|
2031
|
+
- application/json
|
2032
|
+
Api-Token:
|
2033
|
+
- testing
|
2034
|
+
Accept-Encoding:
|
2035
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
2036
|
+
Accept:
|
2037
|
+
- "*/*"
|
2038
|
+
response:
|
2039
|
+
status:
|
2040
|
+
code: 200
|
2041
|
+
message: 'OK '
|
2042
|
+
headers:
|
2043
|
+
X-Frame-Options:
|
2044
|
+
- SAMEORIGIN
|
2045
|
+
X-Xss-Protection:
|
2046
|
+
- 1; mode=block
|
2047
|
+
X-Content-Type-Options:
|
2048
|
+
- nosniff
|
2049
|
+
X-Ua-Compatible:
|
2050
|
+
- chrome=1
|
2051
|
+
Content-Type:
|
2052
|
+
- application/json; charset=utf-8
|
2053
|
+
Etag:
|
2054
|
+
- '"4c2bbd6f621b4a017f38515bac97f428"'
|
2055
|
+
Cache-Control:
|
2056
|
+
- max-age=0, private, must-revalidate
|
2057
|
+
X-Request-Id:
|
2058
|
+
- 1f50f532-23a0-4d23-b179-e23076d0158b
|
2059
|
+
X-Runtime:
|
2060
|
+
- '0.005717'
|
2061
|
+
Server:
|
2062
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
2063
|
+
Date:
|
2064
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
2065
|
+
Content-Length:
|
2066
|
+
- '344'
|
2067
|
+
Connection:
|
2068
|
+
- Keep-Alive
|
2069
|
+
body:
|
2070
|
+
encoding: UTF-8
|
2071
|
+
string: |-
|
2072
|
+
{
|
2073
|
+
"_links": {
|
2074
|
+
"self": {
|
2075
|
+
"href": "http://localhost:3000/"
|
2076
|
+
},
|
2077
|
+
"surveys": {
|
2078
|
+
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
2079
|
+
},
|
2080
|
+
"users": {
|
2081
|
+
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
2082
|
+
},
|
2083
|
+
"questions": {
|
2084
|
+
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
2085
|
+
}
|
2086
|
+
}
|
2087
|
+
}
|
2088
|
+
http_version:
|
2089
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
2090
|
+
- request:
|
2091
|
+
method: post
|
2092
|
+
uri: http://localhost:3000/api/questions
|
2093
|
+
body:
|
2094
|
+
encoding: UTF-8
|
2095
|
+
string: '{"question":{"question_type":"boolean","responses":[true,false],"text":"Do
|
2096
|
+
you like poptarts?","freeform":false,"absolute_index":null,"parent_question_id":null}}'
|
2097
|
+
headers:
|
2098
|
+
User-Agent:
|
2099
|
+
- Faraday v0.9.0
|
2100
|
+
Content-Type:
|
2101
|
+
- application/json
|
2102
|
+
Api-Token:
|
2103
|
+
- testing
|
2104
|
+
Accept-Encoding:
|
2105
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
2106
|
+
Accept:
|
2107
|
+
- "*/*"
|
2108
|
+
response:
|
2109
|
+
status:
|
2110
|
+
code: 201
|
2111
|
+
message: 'Created '
|
2112
|
+
headers:
|
2113
|
+
X-Frame-Options:
|
2114
|
+
- SAMEORIGIN
|
2115
|
+
X-Xss-Protection:
|
2116
|
+
- 1; mode=block
|
2117
|
+
X-Content-Type-Options:
|
2118
|
+
- nosniff
|
2119
|
+
X-Ua-Compatible:
|
2120
|
+
- chrome=1
|
2121
|
+
Content-Type:
|
2122
|
+
- application/json; charset=utf-8
|
2123
|
+
Etag:
|
2124
|
+
- '"277e048fb5bb92aafb2468f6f52ba5d5"'
|
2125
|
+
Cache-Control:
|
2126
|
+
- max-age=0, private, must-revalidate
|
2127
|
+
X-Request-Id:
|
2128
|
+
- 67e2f6e6-61bd-41ff-a1c6-bcb29811734c
|
2129
|
+
X-Runtime:
|
2130
|
+
- '0.008541'
|
2131
|
+
Server:
|
2132
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
2133
|
+
Date:
|
2134
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
2135
|
+
Content-Length:
|
2136
|
+
- '198'
|
2137
|
+
Connection:
|
2138
|
+
- Keep-Alive
|
2139
|
+
body:
|
2140
|
+
encoding: UTF-8
|
2141
|
+
string: |-
|
2142
|
+
{
|
2143
|
+
"id": 92,
|
2144
|
+
"question_type": "boolean",
|
2145
|
+
"text": "Do you like poptarts?",
|
2146
|
+
"responses": [
|
2147
|
+
true,
|
2148
|
+
false
|
2149
|
+
],
|
2150
|
+
"freeform": false,
|
2151
|
+
"absolute_index": null,
|
2152
|
+
"parent_question_id": null
|
2153
|
+
}
|
2154
|
+
http_version:
|
2155
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
2156
|
+
- request:
|
2157
|
+
method: get
|
2158
|
+
uri: http://localhost:3000/
|
2159
|
+
body:
|
2160
|
+
encoding: US-ASCII
|
2161
|
+
string: ''
|
2162
|
+
headers:
|
2163
|
+
User-Agent:
|
2164
|
+
- Faraday v0.9.0
|
2165
|
+
Content-Type:
|
2166
|
+
- application/json
|
2167
|
+
Api-Token:
|
2168
|
+
- testing
|
2169
|
+
Accept-Encoding:
|
2170
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
2171
|
+
Accept:
|
2172
|
+
- "*/*"
|
2173
|
+
response:
|
2174
|
+
status:
|
2175
|
+
code: 200
|
2176
|
+
message: 'OK '
|
2177
|
+
headers:
|
2178
|
+
X-Frame-Options:
|
2179
|
+
- SAMEORIGIN
|
2180
|
+
X-Xss-Protection:
|
2181
|
+
- 1; mode=block
|
2182
|
+
X-Content-Type-Options:
|
2183
|
+
- nosniff
|
2184
|
+
X-Ua-Compatible:
|
2185
|
+
- chrome=1
|
2186
|
+
Content-Type:
|
2187
|
+
- application/json; charset=utf-8
|
2188
|
+
Etag:
|
2189
|
+
- '"4c2bbd6f621b4a017f38515bac97f428"'
|
2190
|
+
Cache-Control:
|
2191
|
+
- max-age=0, private, must-revalidate
|
2192
|
+
X-Request-Id:
|
2193
|
+
- 41e5829f-fd0c-4fe0-8f81-9f8121442153
|
2194
|
+
X-Runtime:
|
2195
|
+
- '0.004245'
|
2196
|
+
Server:
|
2197
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
2198
|
+
Date:
|
2199
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
2200
|
+
Content-Length:
|
2201
|
+
- '344'
|
2202
|
+
Connection:
|
2203
|
+
- Keep-Alive
|
2204
|
+
body:
|
2205
|
+
encoding: UTF-8
|
2206
|
+
string: |-
|
2207
|
+
{
|
2208
|
+
"_links": {
|
2209
|
+
"self": {
|
2210
|
+
"href": "http://localhost:3000/"
|
2211
|
+
},
|
2212
|
+
"surveys": {
|
2213
|
+
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
2214
|
+
},
|
2215
|
+
"users": {
|
2216
|
+
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
2217
|
+
},
|
2218
|
+
"questions": {
|
2219
|
+
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
2220
|
+
}
|
2221
|
+
}
|
2222
|
+
}
|
2223
|
+
http_version:
|
2224
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
2225
|
+
- request:
|
2226
|
+
method: post
|
2227
|
+
uri: http://localhost:3000/api/users
|
2228
|
+
body:
|
2229
|
+
encoding: UTF-8
|
2230
|
+
string: "{}"
|
2231
|
+
headers:
|
2232
|
+
User-Agent:
|
2233
|
+
- Faraday v0.9.0
|
2234
|
+
Content-Type:
|
2235
|
+
- application/json
|
2236
|
+
Api-Token:
|
2237
|
+
- testing
|
2238
|
+
Accept-Encoding:
|
2239
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
2240
|
+
Accept:
|
2241
|
+
- "*/*"
|
2242
|
+
response:
|
2243
|
+
status:
|
2244
|
+
code: 201
|
2245
|
+
message: 'Created '
|
2246
|
+
headers:
|
2247
|
+
X-Frame-Options:
|
2248
|
+
- SAMEORIGIN
|
2249
|
+
X-Xss-Protection:
|
2250
|
+
- 1; mode=block
|
2251
|
+
X-Content-Type-Options:
|
2252
|
+
- nosniff
|
2253
|
+
X-Ua-Compatible:
|
2254
|
+
- chrome=1
|
2255
|
+
Content-Type:
|
2256
|
+
- application/json; charset=utf-8
|
2257
|
+
Etag:
|
2258
|
+
- '"848b42ea99ea63a4836325e0cd3c0b4c"'
|
456
2259
|
Cache-Control:
|
457
2260
|
- max-age=0, private, must-revalidate
|
458
2261
|
X-Request-Id:
|
459
|
-
-
|
2262
|
+
- 84eebd51-5074-466b-a9c4-49995e769d6d
|
460
2263
|
X-Runtime:
|
461
|
-
- '0.
|
2264
|
+
- '0.007318'
|
462
2265
|
Server:
|
463
2266
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
464
2267
|
Date:
|
465
|
-
-
|
2268
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
466
2269
|
Content-Length:
|
467
|
-
- '
|
2270
|
+
- '261'
|
468
2271
|
Connection:
|
469
2272
|
- Keep-Alive
|
470
2273
|
body:
|
471
2274
|
encoding: UTF-8
|
472
2275
|
string: |-
|
473
2276
|
{
|
474
|
-
"service_user_id": "
|
2277
|
+
"service_user_id": "b962b0b5c5675ca539ea20809ac644fbe3a60c4265330be8a401468c5a8f3401",
|
475
2278
|
"_links": {
|
476
2279
|
"self": {
|
477
|
-
"href": "http://localhost:3000/api/users/
|
2280
|
+
"href": "http://localhost:3000/api/users/165"
|
478
2281
|
}
|
479
2282
|
},
|
480
|
-
"token": "
|
2283
|
+
"token": "28aed40130e3d1be5b25a40efe17edbdd9cbbb61aae9bf85241b4dce47becea6"
|
481
2284
|
}
|
482
2285
|
http_version:
|
483
|
-
recorded_at:
|
2286
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
2287
|
+
- request:
|
2288
|
+
method: get
|
2289
|
+
uri: http://localhost:3000/
|
2290
|
+
body:
|
2291
|
+
encoding: US-ASCII
|
2292
|
+
string: ''
|
2293
|
+
headers:
|
2294
|
+
User-Agent:
|
2295
|
+
- Faraday v0.9.0
|
2296
|
+
Content-Type:
|
2297
|
+
- application/json
|
2298
|
+
Api-Token:
|
2299
|
+
- testing
|
2300
|
+
Accept-Encoding:
|
2301
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
2302
|
+
Accept:
|
2303
|
+
- "*/*"
|
2304
|
+
response:
|
2305
|
+
status:
|
2306
|
+
code: 200
|
2307
|
+
message: 'OK '
|
2308
|
+
headers:
|
2309
|
+
X-Frame-Options:
|
2310
|
+
- SAMEORIGIN
|
2311
|
+
X-Xss-Protection:
|
2312
|
+
- 1; mode=block
|
2313
|
+
X-Content-Type-Options:
|
2314
|
+
- nosniff
|
2315
|
+
X-Ua-Compatible:
|
2316
|
+
- chrome=1
|
2317
|
+
Content-Type:
|
2318
|
+
- application/json; charset=utf-8
|
2319
|
+
Etag:
|
2320
|
+
- '"4c2bbd6f621b4a017f38515bac97f428"'
|
2321
|
+
Cache-Control:
|
2322
|
+
- max-age=0, private, must-revalidate
|
2323
|
+
X-Request-Id:
|
2324
|
+
- 7467457c-9b48-47f7-8882-7d1af7acb9aa
|
2325
|
+
X-Runtime:
|
2326
|
+
- '0.005658'
|
2327
|
+
Server:
|
2328
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
2329
|
+
Date:
|
2330
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
2331
|
+
Content-Length:
|
2332
|
+
- '344'
|
2333
|
+
Connection:
|
2334
|
+
- Keep-Alive
|
2335
|
+
body:
|
2336
|
+
encoding: UTF-8
|
2337
|
+
string: |-
|
2338
|
+
{
|
2339
|
+
"_links": {
|
2340
|
+
"self": {
|
2341
|
+
"href": "http://localhost:3000/"
|
2342
|
+
},
|
2343
|
+
"surveys": {
|
2344
|
+
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
2345
|
+
},
|
2346
|
+
"users": {
|
2347
|
+
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
2348
|
+
},
|
2349
|
+
"questions": {
|
2350
|
+
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
2351
|
+
}
|
2352
|
+
}
|
2353
|
+
}
|
2354
|
+
http_version:
|
2355
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
484
2356
|
- request:
|
485
2357
|
method: post
|
486
|
-
uri: http://localhost:3000/api/surveys
|
2358
|
+
uri: http://localhost:3000/api/surveys
|
487
2359
|
body:
|
488
2360
|
encoding: UTF-8
|
489
|
-
string: '{"survey":{"service_user_id":"
|
2361
|
+
string: '{"survey":{"service_user_id":"b962b0b5c5675ca539ea20809ac644fbe3a60c4265330be8a401468c5a8f3401"}}'
|
490
2362
|
headers:
|
491
2363
|
User-Agent:
|
492
2364
|
- Faraday v0.9.0
|
@@ -514,37 +2386,37 @@ http_interactions:
|
|
514
2386
|
Content-Type:
|
515
2387
|
- application/json; charset=utf-8
|
516
2388
|
Etag:
|
517
|
-
- '"
|
2389
|
+
- '"e6d39df938cab4fcefd191fa371655e0"'
|
518
2390
|
Cache-Control:
|
519
2391
|
- max-age=0, private, must-revalidate
|
520
2392
|
X-Request-Id:
|
521
|
-
-
|
2393
|
+
- 23bd1166-3b96-47f2-a149-87771f23f419
|
522
2394
|
X-Runtime:
|
523
|
-
- '0.
|
2395
|
+
- '0.009458'
|
524
2396
|
Server:
|
525
2397
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
526
2398
|
Date:
|
527
|
-
-
|
2399
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
528
2400
|
Content-Length:
|
529
|
-
- '
|
2401
|
+
- '476'
|
530
2402
|
Connection:
|
531
2403
|
- Keep-Alive
|
532
2404
|
body:
|
533
2405
|
encoding: UTF-8
|
534
2406
|
string: |-
|
535
2407
|
{
|
536
|
-
"id":
|
537
|
-
"service_user_id": "
|
2408
|
+
"id": 173,
|
2409
|
+
"service_user_id": "b962b0b5c5675ca539ea20809ac644fbe3a60c4265330be8a401468c5a8f3401",
|
538
2410
|
"_links": {
|
539
2411
|
"self": {
|
540
|
-
"href": "http://localhost:3000/api/surveys/
|
2412
|
+
"href": "http://localhost:3000/api/surveys/173"
|
541
2413
|
},
|
542
2414
|
"survey_questions": {
|
543
2415
|
"post": {
|
544
|
-
"href": "/api/surveys/
|
2416
|
+
"href": "http://localhost:3000/api/surveys/173/survey_questions"
|
545
2417
|
},
|
546
2418
|
"put": {
|
547
|
-
"href": "/api/surveys/
|
2419
|
+
"href": "http://localhost:3000/api/surveys/173/survey_questions"
|
548
2420
|
}
|
549
2421
|
}
|
550
2422
|
},
|
@@ -554,13 +2426,13 @@ http_interactions:
|
|
554
2426
|
]
|
555
2427
|
}
|
556
2428
|
http_version:
|
557
|
-
recorded_at:
|
2429
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
558
2430
|
- request:
|
559
2431
|
method: post
|
560
|
-
uri: http://localhost:3000
|
2432
|
+
uri: http://localhost:3000/api/surveys/173/survey_questions
|
561
2433
|
body:
|
562
2434
|
encoding: UTF-8
|
563
|
-
string: '{"survey_question":{"question_id":
|
2435
|
+
string: '{"survey_question":{"question_id":92}}'
|
564
2436
|
headers:
|
565
2437
|
User-Agent:
|
566
2438
|
- Faraday v0.9.0
|
@@ -588,27 +2460,27 @@ http_interactions:
|
|
588
2460
|
Content-Type:
|
589
2461
|
- application/json; charset=utf-8
|
590
2462
|
Etag:
|
591
|
-
- '"
|
2463
|
+
- '"a72e4d10e3eed5f8aff3a6221873d5bb"'
|
592
2464
|
Cache-Control:
|
593
2465
|
- max-age=0, private, must-revalidate
|
594
2466
|
X-Request-Id:
|
595
|
-
-
|
2467
|
+
- b5dcb6df-2fdf-4b9c-855a-0e11778d3cee
|
596
2468
|
X-Runtime:
|
597
|
-
- '0.
|
2469
|
+
- '0.012937'
|
598
2470
|
Server:
|
599
2471
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
600
2472
|
Date:
|
601
|
-
-
|
2473
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
602
2474
|
Content-Length:
|
603
|
-
- '
|
2475
|
+
- '527'
|
604
2476
|
Connection:
|
605
2477
|
- Keep-Alive
|
606
2478
|
body:
|
607
2479
|
encoding: UTF-8
|
608
2480
|
string: |-
|
609
2481
|
{
|
610
|
-
"id":
|
611
|
-
"text": "
|
2482
|
+
"id": 815,
|
2483
|
+
"text": "Do you like poptarts?",
|
612
2484
|
"type": "boolean",
|
613
2485
|
"responses": [
|
614
2486
|
"t",
|
@@ -618,27 +2490,27 @@ http_interactions:
|
|
618
2490
|
"freeform": false,
|
619
2491
|
"_links": {
|
620
2492
|
"self": {
|
621
|
-
"href": "/api/surveys/
|
2493
|
+
"href": "http://localhost:3000/api/surveys/173/survey_questions/815"
|
622
2494
|
},
|
623
2495
|
"post": {
|
624
|
-
"href": "http://localhost:3000/api/surveys/
|
2496
|
+
"href": "http://localhost:3000/api/surveys/173/survey_questions"
|
625
2497
|
},
|
626
2498
|
"put": {
|
627
|
-
"href": "/api/surveys/
|
2499
|
+
"href": "http://localhost:3000/api/surveys/173/survey_questions/815"
|
628
2500
|
},
|
629
2501
|
"survey": {
|
630
|
-
"href": "/api/surveys/
|
2502
|
+
"href": "http://localhost:3000/api/surveys/173"
|
631
2503
|
}
|
632
2504
|
}
|
633
2505
|
}
|
634
2506
|
http_version:
|
635
|
-
recorded_at:
|
2507
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
636
2508
|
- request:
|
637
2509
|
method: put
|
638
|
-
uri: http://localhost:3000
|
2510
|
+
uri: http://localhost:3000/api/surveys/173/survey_questions/815
|
639
2511
|
body:
|
640
2512
|
encoding: UTF-8
|
641
|
-
string: '{"id":
|
2513
|
+
string: '{"id":815,"survey_question":{"answer":true}}'
|
642
2514
|
headers:
|
643
2515
|
User-Agent:
|
644
2516
|
- Faraday v0.9.0
|
@@ -666,26 +2538,26 @@ http_interactions:
|
|
666
2538
|
Cache-Control:
|
667
2539
|
- no-cache
|
668
2540
|
X-Request-Id:
|
669
|
-
-
|
2541
|
+
- 875ba8f9-6460-4ab6-90cd-80ad86a9c37d
|
670
2542
|
X-Runtime:
|
671
|
-
- '0.
|
2543
|
+
- '0.021243'
|
672
2544
|
Server:
|
673
2545
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
674
2546
|
Date:
|
675
|
-
-
|
2547
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
676
2548
|
Connection:
|
677
2549
|
- Keep-Alive
|
678
2550
|
body:
|
679
2551
|
encoding: UTF-8
|
680
2552
|
string: ''
|
681
2553
|
http_version:
|
682
|
-
recorded_at:
|
2554
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
683
2555
|
- request:
|
684
2556
|
method: post
|
685
|
-
uri: http://localhost:3000/api/surveys
|
2557
|
+
uri: http://localhost:3000/api/surveys
|
686
2558
|
body:
|
687
2559
|
encoding: UTF-8
|
688
|
-
string: '{"survey":{"service_user_id":"
|
2560
|
+
string: '{"survey":{"service_user_id":"b962b0b5c5675ca539ea20809ac644fbe3a60c4265330be8a401468c5a8f3401"}}'
|
689
2561
|
headers:
|
690
2562
|
User-Agent:
|
691
2563
|
- Faraday v0.9.0
|
@@ -713,37 +2585,37 @@ http_interactions:
|
|
713
2585
|
Content-Type:
|
714
2586
|
- application/json; charset=utf-8
|
715
2587
|
Etag:
|
716
|
-
- '"
|
2588
|
+
- '"2a82220f0493583791c90878ef8a72c2"'
|
717
2589
|
Cache-Control:
|
718
2590
|
- max-age=0, private, must-revalidate
|
719
2591
|
X-Request-Id:
|
720
|
-
-
|
2592
|
+
- 839be69a-e8a6-4dba-a7cb-a9ab6c9df15c
|
721
2593
|
X-Runtime:
|
722
|
-
- '0.
|
2594
|
+
- '0.014065'
|
723
2595
|
Server:
|
724
2596
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
725
2597
|
Date:
|
726
|
-
-
|
2598
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
727
2599
|
Content-Length:
|
728
|
-
- '
|
2600
|
+
- '476'
|
729
2601
|
Connection:
|
730
2602
|
- Keep-Alive
|
731
2603
|
body:
|
732
2604
|
encoding: UTF-8
|
733
2605
|
string: |-
|
734
2606
|
{
|
735
|
-
"id":
|
736
|
-
"service_user_id": "
|
2607
|
+
"id": 174,
|
2608
|
+
"service_user_id": "b962b0b5c5675ca539ea20809ac644fbe3a60c4265330be8a401468c5a8f3401",
|
737
2609
|
"_links": {
|
738
2610
|
"self": {
|
739
|
-
"href": "http://localhost:3000/api/surveys/
|
2611
|
+
"href": "http://localhost:3000/api/surveys/174"
|
740
2612
|
},
|
741
2613
|
"survey_questions": {
|
742
2614
|
"post": {
|
743
|
-
"href": "/api/surveys/
|
2615
|
+
"href": "http://localhost:3000/api/surveys/174/survey_questions"
|
744
2616
|
},
|
745
2617
|
"put": {
|
746
|
-
"href": "/api/surveys/
|
2618
|
+
"href": "http://localhost:3000/api/surveys/174/survey_questions"
|
747
2619
|
}
|
748
2620
|
}
|
749
2621
|
},
|
@@ -753,13 +2625,13 @@ http_interactions:
|
|
753
2625
|
]
|
754
2626
|
}
|
755
2627
|
http_version:
|
756
|
-
recorded_at:
|
2628
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
757
2629
|
- request:
|
758
2630
|
method: post
|
759
|
-
uri: http://localhost:3000
|
2631
|
+
uri: http://localhost:3000/api/surveys/174/survey_questions
|
760
2632
|
body:
|
761
2633
|
encoding: UTF-8
|
762
|
-
string: '{"survey_question":{"question_id":
|
2634
|
+
string: '{"survey_question":{"question_id":92}}'
|
763
2635
|
headers:
|
764
2636
|
User-Agent:
|
765
2637
|
- Faraday v0.9.0
|
@@ -787,27 +2659,27 @@ http_interactions:
|
|
787
2659
|
Content-Type:
|
788
2660
|
- application/json; charset=utf-8
|
789
2661
|
Etag:
|
790
|
-
- '"
|
2662
|
+
- '"f703ee381a7f2707562cea42397d90f0"'
|
791
2663
|
Cache-Control:
|
792
2664
|
- max-age=0, private, must-revalidate
|
793
2665
|
X-Request-Id:
|
794
|
-
-
|
2666
|
+
- 6d01330d-1db2-4f9c-9085-5cb2f294fc8d
|
795
2667
|
X-Runtime:
|
796
|
-
- '0.
|
2668
|
+
- '0.012689'
|
797
2669
|
Server:
|
798
2670
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
799
2671
|
Date:
|
800
|
-
-
|
2672
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
801
2673
|
Content-Length:
|
802
|
-
- '
|
2674
|
+
- '527'
|
803
2675
|
Connection:
|
804
2676
|
- Keep-Alive
|
805
2677
|
body:
|
806
2678
|
encoding: UTF-8
|
807
2679
|
string: |-
|
808
2680
|
{
|
809
|
-
"id":
|
810
|
-
"text": "
|
2681
|
+
"id": 816,
|
2682
|
+
"text": "Do you like poptarts?",
|
811
2683
|
"type": "boolean",
|
812
2684
|
"responses": [
|
813
2685
|
"t",
|
@@ -817,27 +2689,27 @@ http_interactions:
|
|
817
2689
|
"freeform": false,
|
818
2690
|
"_links": {
|
819
2691
|
"self": {
|
820
|
-
"href": "/api/surveys/
|
2692
|
+
"href": "http://localhost:3000/api/surveys/174/survey_questions/816"
|
821
2693
|
},
|
822
2694
|
"post": {
|
823
|
-
"href": "http://localhost:3000/api/surveys/
|
2695
|
+
"href": "http://localhost:3000/api/surveys/174/survey_questions"
|
824
2696
|
},
|
825
2697
|
"put": {
|
826
|
-
"href": "/api/surveys/
|
2698
|
+
"href": "http://localhost:3000/api/surveys/174/survey_questions/816"
|
827
2699
|
},
|
828
2700
|
"survey": {
|
829
|
-
"href": "/api/surveys/
|
2701
|
+
"href": "http://localhost:3000/api/surveys/174"
|
830
2702
|
}
|
831
2703
|
}
|
832
2704
|
}
|
833
2705
|
http_version:
|
834
|
-
recorded_at:
|
2706
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
835
2707
|
- request:
|
836
2708
|
method: put
|
837
|
-
uri: http://localhost:3000
|
2709
|
+
uri: http://localhost:3000/api/surveys/174/survey_questions/816
|
838
2710
|
body:
|
839
2711
|
encoding: UTF-8
|
840
|
-
string: '{"id":
|
2712
|
+
string: '{"id":816,"survey_question":{"answer":false}}'
|
841
2713
|
headers:
|
842
2714
|
User-Agent:
|
843
2715
|
- Faraday v0.9.0
|
@@ -857,15 +2729,15 @@ http_interactions:
|
|
857
2729
|
Content-Type:
|
858
2730
|
- text/html; charset=utf-8
|
859
2731
|
Content-Length:
|
860
|
-
- '
|
2732
|
+
- '17276'
|
861
2733
|
X-Request-Id:
|
862
|
-
-
|
2734
|
+
- 1f1cd93b-bb1f-4b38-91d6-9f27c4f62239
|
863
2735
|
X-Runtime:
|
864
|
-
- '0.
|
2736
|
+
- '0.030378'
|
865
2737
|
Server:
|
866
2738
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
867
2739
|
Date:
|
868
|
-
-
|
2740
|
+
- Sun, 05 Oct 2014 12:14:13 GMT
|
869
2741
|
Connection:
|
870
2742
|
- Keep-Alive
|
871
2743
|
body:
|
@@ -940,9 +2812,9 @@ http_interactions:
|
|
940
2812
|
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
941
2813
|
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
942
2814
|
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:383:in
|
943
|
-
`
|
944
|
-
|
945
|
-
|
2815
|
+
`_run__548537728060381544__process_action__callbacks'\nactivesupport (4.0.4)
|
2816
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
2817
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
946
2818
|
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
947
2819
|
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
948
2820
|
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
@@ -969,7 +2841,7 @@ http_interactions:
|
|
969
2841
|
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
970
2842
|
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
971
2843
|
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
972
|
-
(4.0.4) lib/active_support/callbacks.rb:373:in `
|
2844
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__1103736362963642301__call__callbacks'\nactivesupport
|
973
2845
|
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
974
2846
|
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
975
2847
|
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
@@ -1006,7 +2878,7 @@ http_interactions:
|
|
1006
2878
|
(4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
1007
2879
|
(4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
1008
2880
|
(4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\nactivesupport
|
1009
|
-
(4.0.4) lib/active_support/callbacks.rb:383:in `
|
2881
|
+
(4.0.4) lib/active_support/callbacks.rb:383:in `_run__548537728060381544__process_action__callbacks'\nactivesupport
|
1010
2882
|
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1011
2883
|
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
1012
2884
|
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
@@ -1035,7 +2907,7 @@ http_interactions:
|
|
1035
2907
|
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
1036
2908
|
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
1037
2909
|
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
1038
|
-
(4.0.4) lib/active_support/callbacks.rb:373:in `
|
2910
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__1103736362963642301__call__callbacks'\nactivesupport
|
1039
2911
|
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
1040
2912
|
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
1041
2913
|
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
@@ -1057,9 +2929,9 @@ http_interactions:
|
|
1057
2929
|
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
1058
2930
|
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
1059
2931
|
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
1060
|
-
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"
|
2932
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"816",\n
|
1061
2933
|
"survey_question"=>{"answer"=>false},\n "format"=>"json",\n
|
1062
|
-
"survey_id"=>"
|
2934
|
+
"survey_id"=>"174"}</pre>\n\n<div class=\"details\">\n
|
1063
2935
|
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
|
1064
2936
|
session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
|
1065
2937
|
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
@@ -1069,5 +2941,5 @@ http_interactions:
|
|
1069
2941
|
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
1070
2942
|
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
1071
2943
|
http_version:
|
1072
|
-
recorded_at:
|
2944
|
+
recorded_at: Sun, 05 Oct 2014 12:14:13 GMT
|
1073
2945
|
recorded_with: VCR 2.6.0
|