poptart 0.0.7 → 0.0.8

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.
@@ -0,0 +1,1198 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000//api/surveys/90/survey_questions/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"survey_question":{"question_id":8}}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/json
14
+ Api-Token:
15
+ - testing
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: 'Created '
24
+ headers:
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ X-Ua-Compatible:
32
+ - chrome=1
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Etag:
36
+ - '"374d2cc36010d5b4e8a47a058832de4e"'
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ X-Request-Id:
40
+ - 3880cb00-cd0d-40f0-9e9a-911b54837208
41
+ X-Runtime:
42
+ - '0.017469'
43
+ Server:
44
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
45
+ Date:
46
+ - Thu, 25 Sep 2014 02:27:11 GMT
47
+ Content-Length:
48
+ - '517'
49
+ Connection:
50
+ - Keep-Alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: |-
54
+ {
55
+ "id": 283,
56
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
57
+ "type": "boolean",
58
+ "responses": [
59
+ "t",
60
+ "f"
61
+ ],
62
+ "answer": null,
63
+ "freeform": false,
64
+ "_links": {
65
+ "self": {
66
+ "href": "/api/surveys/90/survey_questions/283"
67
+ },
68
+ "post": {
69
+ "href": "http://localhost:3000/api/surveys/90/survey_questions"
70
+ },
71
+ "put": {
72
+ "href": "/api/surveys/90/survey_questions/283"
73
+ },
74
+ "survey": {
75
+ "href": "/api/surveys/90"
76
+ }
77
+ }
78
+ }
79
+ http_version:
80
+ recorded_at: Thu, 25 Sep 2014 02:27:11 GMT
81
+ - request:
82
+ method: put
83
+ uri: http://localhost:3000//api/surveys/90/survey_questions/283/
84
+ body:
85
+ encoding: UTF-8
86
+ string: '{"id":283,"survey_question":{"answer":true}}'
87
+ headers:
88
+ User-Agent:
89
+ - Faraday v0.9.0
90
+ Content-Type:
91
+ - application/json
92
+ Api-Token:
93
+ - testing
94
+ Accept-Encoding:
95
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
96
+ Accept:
97
+ - "*/*"
98
+ response:
99
+ status:
100
+ code: 204
101
+ message: 'No Content '
102
+ headers:
103
+ X-Frame-Options:
104
+ - SAMEORIGIN
105
+ X-Xss-Protection:
106
+ - 1; mode=block
107
+ X-Content-Type-Options:
108
+ - nosniff
109
+ X-Ua-Compatible:
110
+ - chrome=1
111
+ Cache-Control:
112
+ - no-cache
113
+ X-Request-Id:
114
+ - 19d478b0-c82d-4120-8169-39ad1c3f5121
115
+ X-Runtime:
116
+ - '0.008828'
117
+ Server:
118
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
119
+ Date:
120
+ - Thu, 25 Sep 2014 02:27:11 GMT
121
+ Connection:
122
+ - Keep-Alive
123
+ body:
124
+ encoding: UTF-8
125
+ string: ''
126
+ http_version:
127
+ recorded_at: Thu, 25 Sep 2014 02:27:11 GMT
128
+ - request:
129
+ method: get
130
+ uri: http://localhost:3000/api/questions/
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers:
135
+ User-Agent:
136
+ - Faraday v0.9.0
137
+ Content-Type:
138
+ - application/json
139
+ Api-Token:
140
+ - testing
141
+ Accept-Encoding:
142
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
143
+ Accept:
144
+ - "*/*"
145
+ response:
146
+ status:
147
+ code: 200
148
+ message: 'OK '
149
+ headers:
150
+ X-Frame-Options:
151
+ - SAMEORIGIN
152
+ X-Xss-Protection:
153
+ - 1; mode=block
154
+ X-Content-Type-Options:
155
+ - nosniff
156
+ X-Ua-Compatible:
157
+ - chrome=1
158
+ Content-Type:
159
+ - application/json; charset=utf-8
160
+ Etag:
161
+ - '"00b082ab08fa212cd932dcae5cb61a0c"'
162
+ Cache-Control:
163
+ - max-age=0, private, must-revalidate
164
+ X-Request-Id:
165
+ - 87a7140a-993d-4c53-865d-f39e750904d7
166
+ X-Runtime:
167
+ - '0.013029'
168
+ Server:
169
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
170
+ Date:
171
+ - Thu, 25 Sep 2014 02:27:24 GMT
172
+ Content-Length:
173
+ - '7773'
174
+ Connection:
175
+ - Keep-Alive
176
+ body:
177
+ encoding: UTF-8
178
+ string: |-
179
+ [
180
+ {
181
+ "id": 1,
182
+ "question_type": "multiple",
183
+ "text": "How hungry or full are you right now?",
184
+ "responses": [
185
+ "Very hungry",
186
+ "Somewhat hungry",
187
+ "Neither full nor hungry",
188
+ "Somewhat full",
189
+ "Very full"
190
+ ],
191
+ "freeform": false
192
+ },
193
+ {
194
+ "id": 2,
195
+ "question_type": "time",
196
+ "text": "What time did you wake up this morning?",
197
+ "responses": null,
198
+ "freeform": false
199
+ },
200
+ {
201
+ "id": 3,
202
+ "question_type": "time",
203
+ "text": "What time did you got to sleep last night?",
204
+ "responses": null,
205
+ "freeform": false
206
+ },
207
+ {
208
+ "id": 4,
209
+ "question_type": "multiple",
210
+ "text": "Are you judging or evaluating yourself right now (i.e. at the moment just before you were notified)?",
211
+ "responses": [
212
+ "f",
213
+ "Yes - Negatively",
214
+ "Yes - Neutrally",
215
+ "Yes - Positively"
216
+ ],
217
+ "freeform": false
218
+ },
219
+ {
220
+ "id": 5,
221
+ "question_type": "range",
222
+ "text": "How well did you sleep last night?",
223
+ "responses": [
224
+ "0",
225
+ "10"
226
+ ],
227
+ "freeform": false
228
+ },
229
+ {
230
+ "id": 6,
231
+ "question_type": "range",
232
+ "text": "To what extent are you engrossed in what you are doing?",
233
+ "responses": [
234
+ "0",
235
+ "10"
236
+ ],
237
+ "freeform": false
238
+ },
239
+ {
240
+ "id": 7,
241
+ "question_type": "multiple",
242
+ "text": "Are you judging or evaluating what you are doing right now (i.e. at the moment just before you were notified?)",
243
+ "responses": [
244
+ "f",
245
+ "Yes - Negatively",
246
+ "Yes - Neutrally",
247
+ "Yes - Positively"
248
+ ],
249
+ "freeform": false
250
+ },
251
+ {
252
+ "id": 8,
253
+ "question_type": "boolean",
254
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
255
+ "responses": [
256
+ "t",
257
+ "f"
258
+ ],
259
+ "freeform": false
260
+ },
261
+ {
262
+ "id": 9,
263
+ "question_type": "multiple",
264
+ "text": "Imagine you were given $10 to divide between yourself and a stranger to whom you would remain anonymous. How much would you give to the stranger?",
265
+ "responses": [
266
+ "0",
267
+ "1",
268
+ "2",
269
+ "3",
270
+ "4",
271
+ "5",
272
+ "6",
273
+ "7",
274
+ "8",
275
+ "9",
276
+ "10"
277
+ ],
278
+ "freeform": false
279
+ },
280
+ {
281
+ "id": 10,
282
+ "question_type": "boolean",
283
+ "text": "Have you surprised someone with a gift (including small gifts) in the last week?",
284
+ "responses": [
285
+ "t",
286
+ "f"
287
+ ],
288
+ "freeform": false
289
+ },
290
+ {
291
+ "id": 11,
292
+ "question_type": "multiple",
293
+ "text": "In general, how is your health?",
294
+ "responses": [
295
+ "Excellent",
296
+ "Very Good",
297
+ "Good",
298
+ "Fair",
299
+ "Poor"
300
+ ],
301
+ "freeform": false
302
+ },
303
+ {
304
+ "id": 12,
305
+ "question_type": "range",
306
+ "text": "Where would you place yourself on this ladder?\nThink of a ladder representing where people stand in your country.\nAt the top of the ladder are the people who are the best off - those who have the most money, the most education and the most respected jobs. At the bottom are the people who are the worst off - who have the least money, least education, and the least respected jobs or no job. The higher up you are on the ladder, the closer you are to the people at the very top; the lower you are the closer you are to people at the very bottom.",
307
+ "responses": [
308
+ "0",
309
+ "10"
310
+ ],
311
+ "freeform": false
312
+ },
313
+ {
314
+ "id": 13,
315
+ "question_type": "range",
316
+ "text": "To what extent is what you're doing interesting?",
317
+ "responses": [
318
+ "0",
319
+ "10"
320
+ ],
321
+ "freeform": false
322
+ },
323
+ {
324
+ "id": 14,
325
+ "question_type": "multiple",
326
+ "text": "On average, how many hours do you work each week?",
327
+ "responses": [
328
+ "Less than 5",
329
+ "5-10",
330
+ "10-20",
331
+ "20-30",
332
+ "30-40",
333
+ "40-50",
334
+ "50-60",
335
+ "60-70",
336
+ "More than 70"
337
+ ],
338
+ "freeform": false
339
+ },
340
+ {
341
+ "id": 15,
342
+ "question_type": "range",
343
+ "text": "How do you feel right now?",
344
+ "responses": [
345
+ "0",
346
+ "10"
347
+ ],
348
+ "freeform": false
349
+ },
350
+ {
351
+ "id": 16,
352
+ "question_type": "range",
353
+ "text": "To what extent do you expect good things to happen in the future?",
354
+ "responses": [
355
+ "0",
356
+ "10"
357
+ ],
358
+ "freeform": false
359
+ },
360
+ {
361
+ "id": 17,
362
+ "question_type": "boolean",
363
+ "text": "Have you taken any over-the-counter pain medication in the past 24 hours?",
364
+ "responses": [
365
+ "t",
366
+ "f"
367
+ ],
368
+ "freeform": false
369
+ },
370
+ {
371
+ "id": 18,
372
+ "question_type": "range",
373
+ "text": "To what extent have you procrastinated so far today?",
374
+ "responses": [
375
+ "0",
376
+ "10"
377
+ ],
378
+ "freeform": false
379
+ },
380
+ {
381
+ "id": 19,
382
+ "question_type": "range",
383
+ "text": "To what extent are you being productive?",
384
+ "responses": [
385
+ "0",
386
+ "10"
387
+ ],
388
+ "freeform": false
389
+ },
390
+ {
391
+ "id": 20,
392
+ "question_type": "multiple",
393
+ "text": "Who are you talking or interacting with?",
394
+ "responses": [
395
+ "Spouse/partner/significant other",
396
+ "Children",
397
+ "Parents",
398
+ "Other relatives",
399
+ "Friends",
400
+ "Acquaintances",
401
+ "Strangers",
402
+ "Co-workers",
403
+ "Customers/students",
404
+ "Boss",
405
+ "No one"
406
+ ],
407
+ "freeform": true
408
+ },
409
+ {
410
+ "id": 30,
411
+ "question_type": "multiple",
412
+ "text": "Beyond any work you've already done today, how many additional hours do you expect to work today?",
413
+ "responses": [
414
+ "0 (none)",
415
+ "Less than 1 hour",
416
+ "1-2 hours",
417
+ "2-3 hours",
418
+ "3-4 hours",
419
+ "4-5 hours",
420
+ "5-6 hours"
421
+ ],
422
+ "freeform": false
423
+ },
424
+ {
425
+ "id": 21,
426
+ "question_type": "range",
427
+ "text": "To what extent do you feel accepted by the person/people you are interacting with?",
428
+ "responses": [
429
+ "0",
430
+ "10"
431
+ ],
432
+ "freeform": false
433
+ },
434
+ {
435
+ "id": 22,
436
+ "question_type": "boolean",
437
+ "text": "Are you alone?",
438
+ "responses": [
439
+ "t",
440
+ "f"
441
+ ],
442
+ "freeform": false
443
+ },
444
+ {
445
+ "id": 23,
446
+ "question_type": "boolean",
447
+ "text": "Do you want to do what you're doing?",
448
+ "responses": [
449
+ "t",
450
+ "f"
451
+ ],
452
+ "freeform": false
453
+ },
454
+ {
455
+ "id": 24,
456
+ "question_type": "boolean",
457
+ "text": "Are you talking or interacting with anyone?",
458
+ "responses": [
459
+ "t",
460
+ "f"
461
+ ],
462
+ "freeform": false
463
+ },
464
+ {
465
+ "id": 25,
466
+ "question_type": "multiple",
467
+ "text": "Where are you?",
468
+ "responses": [
469
+ "At Home",
470
+ "At Work",
471
+ "In a car",
472
+ "Other"
473
+ ],
474
+ "freeform": true
475
+ },
476
+ {
477
+ "id": 26,
478
+ "question_type": "multiple",
479
+ "text": "How many people are you talking or interacting with?",
480
+ "responses": [
481
+ "0",
482
+ "1",
483
+ "2",
484
+ "3",
485
+ "4",
486
+ "5",
487
+ "6",
488
+ "7",
489
+ "8",
490
+ "9",
491
+ "10",
492
+ "More than 10"
493
+ ],
494
+ "freeform": false
495
+ },
496
+ {
497
+ "id": 27,
498
+ "question_type": "boolean",
499
+ "text": "Do you have to do what you're doing?",
500
+ "responses": [
501
+ "t",
502
+ "f"
503
+ ],
504
+ "freeform": false
505
+ },
506
+ {
507
+ "id": 28,
508
+ "question_type": "range",
509
+ "text": "To what extent are you focused on what you are doing?",
510
+ "responses": [
511
+ "0",
512
+ "10"
513
+ ],
514
+ "freeform": false
515
+ },
516
+ {
517
+ "id": 29,
518
+ "question_type": "multiple",
519
+ "text": "When did you last check Facebook?",
520
+ "responses": [
521
+ "Right now",
522
+ "In the last 5 minutes",
523
+ "In the last 15 minutes",
524
+ "In the last 30 minutes",
525
+ "In the last hour",
526
+ "1-2 hours ago",
527
+ "3-5 hours ago",
528
+ "6-12 hours ago",
529
+ "24 hours ago",
530
+ "Don't use facebook"
531
+ ],
532
+ "freeform": false
533
+ },
534
+ {
535
+ "id": 31,
536
+ "question_type": "boolean",
537
+ "text": "If you could, and it had no negative consequences, would you jump forward in time 24 hours?",
538
+ "responses": [
539
+ "t",
540
+ "f"
541
+ ],
542
+ "freeform": false
543
+ }
544
+ ]
545
+ http_version:
546
+ recorded_at: Thu, 25 Sep 2014 02:27:24 GMT
547
+ - request:
548
+ method: post
549
+ uri: http://localhost:3000/api/users/
550
+ body:
551
+ encoding: UTF-8
552
+ string: "{}"
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
+ - '"8fc1bec4763409df6d798bc1f23d21d5"'
581
+ Cache-Control:
582
+ - max-age=0, private, must-revalidate
583
+ X-Request-Id:
584
+ - 696c7ef6-5241-4820-90c3-1eb6e3e4408c
585
+ X-Runtime:
586
+ - '0.009351'
587
+ Server:
588
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
589
+ Date:
590
+ - Thu, 25 Sep 2014 02:27:24 GMT
591
+ Content-Length:
592
+ - '260'
593
+ Connection:
594
+ - Keep-Alive
595
+ body:
596
+ encoding: UTF-8
597
+ string: |-
598
+ {
599
+ "service_user_id": "649154bdd70ee79f209c380b544c15d920338ea1f6ba9f115bad9fb1fa7fe553",
600
+ "_links": {
601
+ "self": {
602
+ "href": "http://localhost:3000/api/users/91"
603
+ }
604
+ },
605
+ "token": "7ef5f2d6434466e570964a7fdbcb6736d071fe945f0fd9d5df255ec19ace98c6"
606
+ }
607
+ http_version:
608
+ recorded_at: Thu, 25 Sep 2014 02:27:24 GMT
609
+ - request:
610
+ method: post
611
+ uri: http://localhost:3000/api/surveys/
612
+ body:
613
+ encoding: UTF-8
614
+ string: '{"survey":{"service_user_id":"649154bdd70ee79f209c380b544c15d920338ea1f6ba9f115bad9fb1fa7fe553"}}'
615
+ headers:
616
+ User-Agent:
617
+ - Faraday v0.9.0
618
+ Content-Type:
619
+ - application/json
620
+ Api-Token:
621
+ - testing
622
+ Accept-Encoding:
623
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
624
+ Accept:
625
+ - "*/*"
626
+ response:
627
+ status:
628
+ code: 201
629
+ message: 'Created '
630
+ headers:
631
+ X-Frame-Options:
632
+ - SAMEORIGIN
633
+ X-Xss-Protection:
634
+ - 1; mode=block
635
+ X-Content-Type-Options:
636
+ - nosniff
637
+ X-Ua-Compatible:
638
+ - chrome=1
639
+ Content-Type:
640
+ - application/json; charset=utf-8
641
+ Etag:
642
+ - '"7b151d23dea2d4f45ea5427439279a9c"'
643
+ Cache-Control:
644
+ - max-age=0, private, must-revalidate
645
+ X-Request-Id:
646
+ - e0770b43-7767-4e54-ae71-f9be916d1872
647
+ X-Runtime:
648
+ - '0.010578'
649
+ Server:
650
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
651
+ Date:
652
+ - Thu, 25 Sep 2014 02:27:24 GMT
653
+ Content-Length:
654
+ - '430'
655
+ Connection:
656
+ - Keep-Alive
657
+ body:
658
+ encoding: UTF-8
659
+ string: |-
660
+ {
661
+ "id": 92,
662
+ "service_user_id": "649154bdd70ee79f209c380b544c15d920338ea1f6ba9f115bad9fb1fa7fe553",
663
+ "_links": {
664
+ "self": {
665
+ "href": "http://localhost:3000/api/surveys/92"
666
+ },
667
+ "survey_questions": {
668
+ "post": {
669
+ "href": "/api/surveys/92/survey_questions"
670
+ },
671
+ "put": {
672
+ "href": "/api/surveys/92/survey_questions"
673
+ }
674
+ }
675
+ },
676
+ "completed": false,
677
+ "survey_questions": [
678
+
679
+ ]
680
+ }
681
+ http_version:
682
+ recorded_at: Thu, 25 Sep 2014 02:27:24 GMT
683
+ - request:
684
+ method: post
685
+ uri: http://localhost:3000//api/surveys/92/survey_questions/
686
+ body:
687
+ encoding: UTF-8
688
+ string: '{"survey_question":{"question_id":8}}'
689
+ headers:
690
+ User-Agent:
691
+ - Faraday v0.9.0
692
+ Content-Type:
693
+ - application/json
694
+ Api-Token:
695
+ - testing
696
+ Accept-Encoding:
697
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
698
+ Accept:
699
+ - "*/*"
700
+ response:
701
+ status:
702
+ code: 201
703
+ message: 'Created '
704
+ headers:
705
+ X-Frame-Options:
706
+ - SAMEORIGIN
707
+ X-Xss-Protection:
708
+ - 1; mode=block
709
+ X-Content-Type-Options:
710
+ - nosniff
711
+ X-Ua-Compatible:
712
+ - chrome=1
713
+ Content-Type:
714
+ - application/json; charset=utf-8
715
+ Etag:
716
+ - '"378f4dc139ae8609c09bb8e683fc63a8"'
717
+ Cache-Control:
718
+ - max-age=0, private, must-revalidate
719
+ X-Request-Id:
720
+ - 4355ed1f-7b9a-4fdb-b613-828ec80db94e
721
+ X-Runtime:
722
+ - '0.020660'
723
+ Server:
724
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
725
+ Date:
726
+ - Thu, 25 Sep 2014 02:27:24 GMT
727
+ Content-Length:
728
+ - '517'
729
+ Connection:
730
+ - Keep-Alive
731
+ body:
732
+ encoding: UTF-8
733
+ string: |-
734
+ {
735
+ "id": 284,
736
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
737
+ "type": "boolean",
738
+ "responses": [
739
+ "t",
740
+ "f"
741
+ ],
742
+ "answer": null,
743
+ "freeform": false,
744
+ "_links": {
745
+ "self": {
746
+ "href": "/api/surveys/92/survey_questions/284"
747
+ },
748
+ "post": {
749
+ "href": "http://localhost:3000/api/surveys/92/survey_questions"
750
+ },
751
+ "put": {
752
+ "href": "/api/surveys/92/survey_questions/284"
753
+ },
754
+ "survey": {
755
+ "href": "/api/surveys/92"
756
+ }
757
+ }
758
+ }
759
+ http_version:
760
+ recorded_at: Thu, 25 Sep 2014 02:27:24 GMT
761
+ - request:
762
+ method: put
763
+ uri: http://localhost:3000//api/surveys/92/survey_questions/284/
764
+ body:
765
+ encoding: UTF-8
766
+ string: '{"id":284,"survey_question":{"answer":true}}'
767
+ headers:
768
+ User-Agent:
769
+ - Faraday v0.9.0
770
+ Content-Type:
771
+ - application/json
772
+ Api-Token:
773
+ - testing
774
+ Accept-Encoding:
775
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
776
+ Accept:
777
+ - "*/*"
778
+ response:
779
+ status:
780
+ code: 204
781
+ message: 'No Content '
782
+ headers:
783
+ X-Frame-Options:
784
+ - SAMEORIGIN
785
+ X-Xss-Protection:
786
+ - 1; mode=block
787
+ X-Content-Type-Options:
788
+ - nosniff
789
+ X-Ua-Compatible:
790
+ - chrome=1
791
+ Cache-Control:
792
+ - no-cache
793
+ X-Request-Id:
794
+ - 67c0a4d7-677d-4199-bee3-21fdd93a1f73
795
+ X-Runtime:
796
+ - '0.010593'
797
+ Server:
798
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
799
+ Date:
800
+ - Thu, 25 Sep 2014 02:27:24 GMT
801
+ Connection:
802
+ - Keep-Alive
803
+ body:
804
+ encoding: UTF-8
805
+ string: ''
806
+ http_version:
807
+ recorded_at: Thu, 25 Sep 2014 02:27:24 GMT
808
+ - request:
809
+ method: post
810
+ uri: http://localhost:3000/api/surveys/
811
+ body:
812
+ encoding: UTF-8
813
+ string: '{"survey":{"service_user_id":"649154bdd70ee79f209c380b544c15d920338ea1f6ba9f115bad9fb1fa7fe553"}}'
814
+ headers:
815
+ User-Agent:
816
+ - Faraday v0.9.0
817
+ Content-Type:
818
+ - application/json
819
+ Api-Token:
820
+ - testing
821
+ Accept-Encoding:
822
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
823
+ Accept:
824
+ - "*/*"
825
+ response:
826
+ status:
827
+ code: 201
828
+ message: 'Created '
829
+ headers:
830
+ X-Frame-Options:
831
+ - SAMEORIGIN
832
+ X-Xss-Protection:
833
+ - 1; mode=block
834
+ X-Content-Type-Options:
835
+ - nosniff
836
+ X-Ua-Compatible:
837
+ - chrome=1
838
+ Content-Type:
839
+ - application/json; charset=utf-8
840
+ Etag:
841
+ - '"2585f48d098cf8ef1f4b81ba33c32230"'
842
+ Cache-Control:
843
+ - max-age=0, private, must-revalidate
844
+ X-Request-Id:
845
+ - f593c0c6-15fa-41f7-92e1-3688ee21dae0
846
+ X-Runtime:
847
+ - '0.010566'
848
+ Server:
849
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
850
+ Date:
851
+ - Thu, 25 Sep 2014 02:27:24 GMT
852
+ Content-Length:
853
+ - '430'
854
+ Connection:
855
+ - Keep-Alive
856
+ body:
857
+ encoding: UTF-8
858
+ string: |-
859
+ {
860
+ "id": 93,
861
+ "service_user_id": "649154bdd70ee79f209c380b544c15d920338ea1f6ba9f115bad9fb1fa7fe553",
862
+ "_links": {
863
+ "self": {
864
+ "href": "http://localhost:3000/api/surveys/93"
865
+ },
866
+ "survey_questions": {
867
+ "post": {
868
+ "href": "/api/surveys/93/survey_questions"
869
+ },
870
+ "put": {
871
+ "href": "/api/surveys/93/survey_questions"
872
+ }
873
+ }
874
+ },
875
+ "completed": false,
876
+ "survey_questions": [
877
+
878
+ ]
879
+ }
880
+ http_version:
881
+ recorded_at: Thu, 25 Sep 2014 02:27:24 GMT
882
+ - request:
883
+ method: post
884
+ uri: http://localhost:3000//api/surveys/93/survey_questions/
885
+ body:
886
+ encoding: UTF-8
887
+ string: '{"survey_question":{"question_id":8}}'
888
+ headers:
889
+ User-Agent:
890
+ - Faraday v0.9.0
891
+ Content-Type:
892
+ - application/json
893
+ Api-Token:
894
+ - testing
895
+ Accept-Encoding:
896
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
897
+ Accept:
898
+ - "*/*"
899
+ response:
900
+ status:
901
+ code: 201
902
+ message: 'Created '
903
+ headers:
904
+ X-Frame-Options:
905
+ - SAMEORIGIN
906
+ X-Xss-Protection:
907
+ - 1; mode=block
908
+ X-Content-Type-Options:
909
+ - nosniff
910
+ X-Ua-Compatible:
911
+ - chrome=1
912
+ Content-Type:
913
+ - application/json; charset=utf-8
914
+ Etag:
915
+ - '"f2dee439f371d8d7730002ed7a11dfd0"'
916
+ Cache-Control:
917
+ - max-age=0, private, must-revalidate
918
+ X-Request-Id:
919
+ - ab6b8683-9db8-4e15-86f0-b8e3e25791e6
920
+ X-Runtime:
921
+ - '0.012348'
922
+ Server:
923
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
924
+ Date:
925
+ - Thu, 25 Sep 2014 02:27:25 GMT
926
+ Content-Length:
927
+ - '517'
928
+ Connection:
929
+ - Keep-Alive
930
+ body:
931
+ encoding: UTF-8
932
+ string: |-
933
+ {
934
+ "id": 285,
935
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
936
+ "type": "boolean",
937
+ "responses": [
938
+ "t",
939
+ "f"
940
+ ],
941
+ "answer": null,
942
+ "freeform": false,
943
+ "_links": {
944
+ "self": {
945
+ "href": "/api/surveys/93/survey_questions/285"
946
+ },
947
+ "post": {
948
+ "href": "http://localhost:3000/api/surveys/93/survey_questions"
949
+ },
950
+ "put": {
951
+ "href": "/api/surveys/93/survey_questions/285"
952
+ },
953
+ "survey": {
954
+ "href": "/api/surveys/93"
955
+ }
956
+ }
957
+ }
958
+ http_version:
959
+ recorded_at: Thu, 25 Sep 2014 02:27:25 GMT
960
+ - request:
961
+ method: put
962
+ uri: http://localhost:3000//api/surveys/93/survey_questions/285/
963
+ body:
964
+ encoding: UTF-8
965
+ string: '{"id":285,"survey_question":{"answer":false}}'
966
+ headers:
967
+ User-Agent:
968
+ - Faraday v0.9.0
969
+ Content-Type:
970
+ - application/json
971
+ Api-Token:
972
+ - testing
973
+ Accept-Encoding:
974
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
975
+ Accept:
976
+ - "*/*"
977
+ response:
978
+ status:
979
+ code: 422
980
+ message: 'Unprocessable Entity '
981
+ headers:
982
+ Content-Type:
983
+ - text/html; charset=utf-8
984
+ Content-Length:
985
+ - '17277'
986
+ X-Request-Id:
987
+ - a7f30c63-0f79-4ce7-8a48-33821ff51bec
988
+ X-Runtime:
989
+ - '0.038199'
990
+ Server:
991
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
992
+ Date:
993
+ - Thu, 25 Sep 2014 02:27:25 GMT
994
+ Connection:
995
+ - Keep-Alive
996
+ body:
997
+ encoding: UTF-8
998
+ string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
999
+ />\n <title>Action Controller: Exception caught</title>\n <style>\n body
1000
+ {\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
1001
+ \ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
1002
+ arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
1003
+ \ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
1004
+ \ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
1005
+ 0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
1006
+ \ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
1007
+ \ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
1008
+ \ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
1009
+ \ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
1010
+ \ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
1011
+ \ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
1012
+ \ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
1013
+ none;\n }\n\n #container {\n box-sizing: border-box;\n width:
1014
+ 100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
1015
+ \ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
1016
+ \ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
1017
+ {\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
1018
+ {\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
1019
+ \ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
1020
+ {\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
1021
+ .5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
1022
+ \ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
1023
+ #F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
1024
+ \ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
1025
+ { color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
1026
+ {\n var s = document.getElementById(id).style;\n s.display = s.display
1027
+ == 'none' ? 'block' : 'none';\n return false;\n }\n var show =
1028
+ function(id) {\n document.getElementById(id).style.display = 'block';\n
1029
+ \ }\n var hide = function(id) {\n document.getElementById(id).style.display
1030
+ = 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
1031
+ \ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
1032
+ \ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
1033
+ \ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n ActiveRecord::RecordInvalid\n
1034
+ \ in Api::V1::SurveyQuestionsController#update\n </h1>\n</header>\n\n<div
1035
+ id=\"container\">\n <h2>Validation failed: Answer can&#39;t be blank</h2>\n\n
1036
+ \ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
1037
+ line <strong>#10</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
1038
+ cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
1039
+ 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
1040
+ \ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">
1041
+ \ def update\n</div><div class=\"line\"> survey_question.answer = params[:survey_question][:answer]\n</div><div
1042
+ class=\"line active\"> survey_question.save!\n</div><div class=\"line\">
1043
+ \ respond_with survey_question, { status: :created, location: nil, show_next:
1044
+ true,\n</div><div class=\"line\"> represent_with:
1045
+ nil}\n</div><div class=\"line\"> end\n</div>\n</pre>\n</td>\n </tr>\n
1046
+ \ </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
1047
+ id=\"traces\">\n <a href=\"#\" onclick=\"hide(&#39;Framework-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Application-Trace&#39;);;
1048
+ return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide(&#39;Application-Trace&#39;);hide(&#39;Full-Trace&#39;);show(&#39;Framework-Trace&#39;);;
1049
+ return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide(&#39;Application-Trace&#39;);hide(&#39;Framework-Trace&#39;);show(&#39;Full-Trace&#39;);;
1050
+ return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
1051
+ block;\">\n <pre><code>app/controllers/api/v1/survey_questions_controller.rb:10:in
1052
+ `update&#39;</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
1053
+ none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
1054
+ `save!&#39;\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
1055
+ `save!&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
1056
+ `block in save!&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
1057
+ `block in with_transaction_returning_status&#39;\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
1058
+ `block in transaction&#39;\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
1059
+ `within_new_transaction&#39;\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
1060
+ `transaction&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
1061
+ `transaction&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
1062
+ `with_transaction_returning_status&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
1063
+ `save!&#39;\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
1064
+ `send_action&#39;\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
1065
+ `process_action&#39;\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
1066
+ `process_action&#39;\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
1067
+ `block in process_action&#39;\nactivesupport (4.0.4) lib/active_support/callbacks.rb:383:in
1068
+ `_run__3589005362542623454__process_action__callbacks&#39;\nactivesupport
1069
+ (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks&#39;\nactionpack
1070
+ (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action&#39;\nactionpack
1071
+ (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action&#39;\nactionpack
1072
+ (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action&#39;\nactivesupport
1073
+ (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument&#39;\nactivesupport
1074
+ (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument&#39;\nactivesupport
1075
+ (4.0.4) lib/active_support/notifications.rb:159:in `instrument&#39;\nactionpack
1076
+ (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action&#39;\nactiverecord
1077
+ (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action&#39;\nactionpack
1078
+ (4.0.4) lib/abstract_controller/base.rb:136:in `process&#39;\nactionpack (4.0.4)
1079
+ lib/abstract_controller/rendering.rb:44:in `process&#39;\nactionpack (4.0.4)
1080
+ lib/action_controller/metal.rb:195:in `dispatch&#39;\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
1081
+ `dispatch&#39;\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
1082
+ in action&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
1083
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
1084
+ `dispatch&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
1085
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
1086
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
1087
+ `block in call&#39;\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
1088
+ `each&#39;\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
1089
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
1090
+ `call&#39;\nrack (1.5.2) lib/rack/etag.rb:23:in `call&#39;\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
1091
+ `call&#39;\nrack (1.5.2) lib/rack/head.rb:11:in `call&#39;\nactionpack (4.0.4)
1092
+ lib/action_dispatch/middleware/params_parser.rb:27:in `call&#39;\nactiverecord
1093
+ (4.0.4) lib/active_record/query_cache.rb:36:in `call&#39;\nactiverecord (4.0.4)
1094
+ lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call&#39;\nactiverecord
1095
+ (4.0.4) lib/active_record/migration.rb:373:in `call&#39;\nactionpack (4.0.4)
1096
+ lib/action_dispatch/middleware/callbacks.rb:29:in `block in call&#39;\nactivesupport
1097
+ (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3409925208780751347__call__callbacks&#39;\nactivesupport
1098
+ (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks&#39;\nactionpack
1099
+ (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call&#39;\nactionpack
1100
+ (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call&#39;\nactionpack
1101
+ (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call&#39;\nactionpack
1102
+ (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call&#39;\nactionpack
1103
+ (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call&#39;\nrailties
1104
+ (4.0.4) lib/rails/rack/logger.rb:38:in `call_app&#39;\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
1105
+ `block in call&#39;\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
1106
+ `block in tagged&#39;\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
1107
+ `tagged&#39;\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
1108
+ `tagged&#39;\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call&#39;\nactionpack
1109
+ (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call&#39;\nrack
1110
+ (1.5.2) lib/rack/runtime.rb:17:in `call&#39;\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
1111
+ `call&#39;\nrack (1.5.2) lib/rack/lock.rb:17:in `call&#39;\nactionpack (4.0.4)
1112
+ lib/action_dispatch/middleware/static.rb:64:in `call&#39;\nrailties (4.0.4)
1113
+ lib/rails/engine.rb:511:in `call&#39;\nrailties (4.0.4) lib/rails/application.rb:97:in
1114
+ `call&#39;\nrack (1.5.2) lib/rack/lock.rb:17:in `call&#39;\nrack (1.5.2) lib/rack/content_length.rb:14:in
1115
+ `call&#39;\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service&#39;\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
1116
+ `service&#39;\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
1117
+ `run&#39;\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
1118
+ `block in start_thread&#39;</code></pre>\n </div>\n <div id=\"Full-Trace\"
1119
+ style=\"display: none;\">\n <pre><code>activerecord (4.0.4) lib/active_record/validations.rb:57:in
1120
+ `save!&#39;\nactiverecord (4.0.4) lib/active_record/attribute_methods/dirty.rb:41:in
1121
+ `save!&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
1122
+ `block in save!&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:330:in
1123
+ `block in with_transaction_returning_status&#39;\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
1124
+ `block in transaction&#39;\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
1125
+ `within_new_transaction&#39;\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
1126
+ `transaction&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
1127
+ `transaction&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
1128
+ `with_transaction_returning_status&#39;\nactiverecord (4.0.4) lib/active_record/transactions.rb:275:in
1129
+ `save!&#39;\napp/controllers/api/v1/survey_questions_controller.rb:10:in `update&#39;\nactionpack
1130
+ (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action&#39;\nactionpack
1131
+ (4.0.4) lib/abstract_controller/base.rb:189:in `process_action&#39;\nactionpack
1132
+ (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action&#39;\nactionpack
1133
+ (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action&#39;\nactivesupport
1134
+ (4.0.4) lib/active_support/callbacks.rb:383:in `_run__3589005362542623454__process_action__callbacks&#39;\nactivesupport
1135
+ (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks&#39;\nactionpack
1136
+ (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action&#39;\nactionpack
1137
+ (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action&#39;\nactionpack
1138
+ (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action&#39;\nactivesupport
1139
+ (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument&#39;\nactivesupport
1140
+ (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument&#39;\nactivesupport
1141
+ (4.0.4) lib/active_support/notifications.rb:159:in `instrument&#39;\nactionpack
1142
+ (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action&#39;\nactiverecord
1143
+ (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action&#39;\nactionpack
1144
+ (4.0.4) lib/abstract_controller/base.rb:136:in `process&#39;\nactionpack (4.0.4)
1145
+ lib/abstract_controller/rendering.rb:44:in `process&#39;\nactionpack (4.0.4)
1146
+ lib/action_controller/metal.rb:195:in `dispatch&#39;\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
1147
+ `dispatch&#39;\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
1148
+ in action&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
1149
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
1150
+ `dispatch&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
1151
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
1152
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
1153
+ `block in call&#39;\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
1154
+ `each&#39;\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
1155
+ `call&#39;\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
1156
+ `call&#39;\nrack (1.5.2) lib/rack/etag.rb:23:in `call&#39;\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
1157
+ `call&#39;\nrack (1.5.2) lib/rack/head.rb:11:in `call&#39;\nactionpack (4.0.4)
1158
+ lib/action_dispatch/middleware/params_parser.rb:27:in `call&#39;\nactiverecord
1159
+ (4.0.4) lib/active_record/query_cache.rb:36:in `call&#39;\nactiverecord (4.0.4)
1160
+ lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call&#39;\nactiverecord
1161
+ (4.0.4) lib/active_record/migration.rb:373:in `call&#39;\nactionpack (4.0.4)
1162
+ lib/action_dispatch/middleware/callbacks.rb:29:in `block in call&#39;\nactivesupport
1163
+ (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3409925208780751347__call__callbacks&#39;\nactivesupport
1164
+ (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks&#39;\nactionpack
1165
+ (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call&#39;\nactionpack
1166
+ (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call&#39;\nactionpack
1167
+ (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call&#39;\nactionpack
1168
+ (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call&#39;\nactionpack
1169
+ (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call&#39;\nrailties
1170
+ (4.0.4) lib/rails/rack/logger.rb:38:in `call_app&#39;\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
1171
+ `block in call&#39;\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
1172
+ `block in tagged&#39;\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
1173
+ `tagged&#39;\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
1174
+ `tagged&#39;\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call&#39;\nactionpack
1175
+ (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call&#39;\nrack
1176
+ (1.5.2) lib/rack/runtime.rb:17:in `call&#39;\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
1177
+ `call&#39;\nrack (1.5.2) lib/rack/lock.rb:17:in `call&#39;\nactionpack (4.0.4)
1178
+ lib/action_dispatch/middleware/static.rb:64:in `call&#39;\nrailties (4.0.4)
1179
+ lib/rails/engine.rb:511:in `call&#39;\nrailties (4.0.4) lib/rails/application.rb:97:in
1180
+ `call&#39;\nrack (1.5.2) lib/rack/lock.rb:17:in `call&#39;\nrack (1.5.2) lib/rack/content_length.rb:14:in
1181
+ `call&#39;\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service&#39;\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
1182
+ `service&#39;\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
1183
+ `run&#39;\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
1184
+ `block in start_thread&#39;</code></pre>\n </div>\n</div>\n\n \n\n<h2
1185
+ style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{&quot;id&quot;=&gt;&quot;285&quot;,\n
1186
+ &quot;survey_question&quot;=&gt;{&quot;answer&quot;=&gt;false},\n &quot;format&quot;=&gt;&quot;json&quot;,\n
1187
+ &quot;survey_id&quot;=&gt;&quot;93&quot;}</pre>\n\n<div class=\"details\">\n
1188
+ \ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
1189
+ session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
1190
+ class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
1191
+ toggleEnvDump()\">Toggle env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
1192
+ &quot;CGI/1.1&quot;\nHTTP_ACCEPT: &quot;*/*&quot;\nHTTP_ACCEPT_ENCODING: &quot;gzip;q=1.0,deflate;q=0.6,identity;q=0.3&quot;\nREMOTE_ADDR:
1193
+ &quot;127.0.0.1&quot;\nREMOTE_HOST: &quot;127.0.0.1&quot;\nSERVER_NAME: &quot;localhost&quot;\nSERVER_PROTOCOL:
1194
+ &quot;HTTP/1.1&quot;</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
1195
+ <pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
1196
+ http_version:
1197
+ recorded_at: Thu, 25 Sep 2014 02:27:25 GMT
1198
+ recorded_with: VCR 2.6.0