poptart 0.0.13 → 0.0.14
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/.ruby-version +1 -1
- data/lib/poptart.rb +1 -4
- data/lib/poptart/link.rb +9 -0
- data/lib/poptart/model.rb +13 -29
- data/lib/poptart/question.rb +21 -17
- data/lib/poptart/root.rb +10 -1
- data/lib/poptart/survey.rb +34 -7
- data/lib/poptart/survey_question.rb +32 -12
- data/lib/poptart/user.rb +4 -21
- data/lib/version.rb +1 -1
- data/poptart.gemspec +0 -4
- data/spec/lib/poptart/model_spec.rb +95 -0
- data/spec/lib/poptart/question_spec.rb +47 -0
- data/spec/lib/poptart/root_spec.rb +50 -0
- data/spec/lib/poptart/survey_question_spec.rb +166 -0
- data/spec/lib/poptart/survey_spec.rb +105 -0
- data/spec/lib/poptart/user_spec.rb +45 -0
- data/spec/requests/questions_spec.rb +31 -0
- data/spec/requests/survey_questions_spec.rb +150 -0
- data/spec/requests/surveys_spec.rb +34 -5
- data/spec/requests/{user_management_spec.rb → users_spec.rb} +5 -5
- data/spec/spec_helper.rb +1 -4
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +1527 -1596
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +2942 -2035
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +254 -70
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +110 -48
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +1618 -286
- data/spec/vcr/poptart/survey/adds_a_question_to_a_survey.yml +1939 -0
- data/spec/vcr/poptart/survey/creates_a_random_survey.yml +318 -0
- data/spec/vcr/poptart/survey/creates_an_empty_survey.yml +702 -0
- data/spec/vcr/poptart/survey/returns_a_survey_by_id.yml +618 -0
- data/spec/vcr/poptart/user/creates_a_user.yml +179 -0
- data/spec/vcr/{user/management_creates_a_user.yml → poptart/user/returns_a_user.yml} +72 -69
- data/spec/vcr/questions/creates_a_question.yml +186 -0
- data/spec/vcr/questions/finds_a_question_by_id.yml +326 -0
- data/spec/vcr/questions/finds_a_question_by_key.yml +144 -0
- data/spec/vcr/questions/returns_all_answered_survey_questions_for_a_question.yml +1021 -0
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question.yml +533 -479
- data/spec/vcr/survey/questions_answers_a_multiple_choice_question.yml +1454 -0
- data/spec/vcr/survey/questions_answers_a_survey_question.yml +1772 -0
- data/spec/vcr/survey/questions_creates_and_returns_an_empty_survey.yml +372 -0
- data/spec/vcr/survey/questions_finds_survey_question_for_id.yml +3083 -0
- data/spec/vcr/survey/questions_returns_all_answered_survey_questions_for_a_question.yml +5756 -0
- data/spec/vcr/survey/questions_returns_all_answered_survey_questions_for_a_question_by_key.yml +973 -0
- data/spec/vcr/survey/questions_returns_all_answered_survey_questions_for_a_survey.yml +620 -0
- metadata +55 -72
- data/lib/poptart/boolean_question.rb +0 -14
- data/lib/poptart/multiple_response_question.rb +0 -9
- data/lib/poptart/range_question.rb +0 -9
- data/lib/poptart/time_question.rb +0 -9
- data/spec/requests/answering_survey_questions_spec.rb +0 -79
- data/spec/requests/answers_spec.rb +0 -45
- data/spec/requests/creating_questions_spec.rb +0 -30
@@ -0,0 +1,1939 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/surveys/9/survey_questions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"survey_question":{"question_id":null}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Api-Token:
|
15
|
+
- testing
|
16
|
+
User-Token:
|
17
|
+
- 87009b7c976f83211246bde7db42fef6d22f5110dae593b3bf25c6145eee7457
|
18
|
+
Service-User-Id:
|
19
|
+
- 42f511cefffaaf5e9e34159c9f9ebc6e44c2ef1feb5d80d8927124c0b1e64832
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Accept:
|
23
|
+
- "*/*"
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 500
|
27
|
+
message: 'Internal Server Error '
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=utf-8
|
31
|
+
Content-Length:
|
32
|
+
- '21541'
|
33
|
+
X-Request-Id:
|
34
|
+
- fd052338-bf81-442a-9c09-98bd18a423e3
|
35
|
+
X-Runtime:
|
36
|
+
- '0.081342'
|
37
|
+
Server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
39
|
+
Date:
|
40
|
+
- Sat, 10 Jan 2015 19:50:00 GMT
|
41
|
+
Connection:
|
42
|
+
- Keep-Alive
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
46
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
47
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
48
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
49
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
50
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
51
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
52
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
53
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
54
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
55
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
56
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
57
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
58
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
59
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
60
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
61
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
62
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
63
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
64
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
65
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
66
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
67
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
68
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
69
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
70
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
71
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
72
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
73
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
74
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
75
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
76
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
77
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
78
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
79
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
80
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n NoMethodError\n
|
81
|
+
\ in Api::V1::SurveyQuestionsController#create\n </h1>\n</header>\n\n<div
|
82
|
+
id=\"container\">\n <h2>undefined method `responses' for nil:NilClass</h2>\n\n
|
83
|
+
\ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
|
84
|
+
line <strong>#22</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
|
85
|
+
cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
|
86
|
+
class=\"line_numbers\">\n<span>20</span>\n<span>21</span>\n<span>22</span>\n<span>23</span>\n<span>24</span>\n
|
87
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">\n</div><div
|
88
|
+
class=\"line\"> def stamp_responses\n</div><div class=\"line active\"> self.responses
|
89
|
+
= question.responses\n</div><div class=\"line\"> end\n</div><div class=\"line\">end\n</div>\n</pre>\n</td>\n
|
90
|
+
\ </tr>\n </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
91
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
92
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
93
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
94
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
95
|
+
block;\">\n <pre><code>app/models/survey_question.rb:22:in `stamp_responses'\napp/controllers/api/v1/survey_questions_controller.rb:30:in
|
96
|
+
`create'</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
|
97
|
+
none;\">\n <pre><code>activesupport (4.0.4) lib/active_support/callbacks.rb:377:in
|
98
|
+
`_run__418042876317714359__create__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
99
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:306:in
|
100
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/timestamp.rb:57:in
|
101
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/persistence.rb:478:in
|
102
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
103
|
+
`block in create_or_update'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
104
|
+
`_run__418042876317714359__save__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
105
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
106
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/persistence.rb:103:in
|
107
|
+
`save'\nactiverecord (4.0.4) lib/active_record/validations.rb:51:in `save'\nactiverecord
|
108
|
+
(4.0.4) lib/active_record/attribute_methods/dirty.rb:32:in `save'\nactiverecord
|
109
|
+
(4.0.4) lib/active_record/transactions.rb:270:in `block (2 levels) in save'\nactiverecord
|
110
|
+
(4.0.4) lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\nactiverecord
|
111
|
+
(4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
112
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
113
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
114
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:270:in
|
115
|
+
`block in save'\nactiverecord (4.0.4) lib/active_record/transactions.rb:285:in
|
116
|
+
`rollback_active_record_state!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:269:in
|
117
|
+
`save'\nactiverecord (4.0.4) lib/active_record/associations/has_many_association.rb:40:in
|
118
|
+
`insert_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:463:in
|
119
|
+
`block (2 levels) in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:367:in
|
120
|
+
`add_to_target'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:461:in
|
121
|
+
`block in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:152:in
|
122
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
123
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
124
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
125
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
126
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:151:in
|
127
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:460:in
|
128
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:121:in
|
129
|
+
`create'\nactiverecord (4.0.4) lib/active_record/associations/collection_proxy.rb:260:in
|
130
|
+
`create'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
131
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
132
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
133
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
134
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
135
|
+
`_run__486478572523133459__process_action__callbacks'\nactivesupport (4.0.4)
|
136
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
137
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
138
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
139
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
140
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
141
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
142
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
143
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
144
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
145
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
146
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
147
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
148
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
149
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
150
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
151
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
152
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
153
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
154
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
155
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
156
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
157
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
158
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
159
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
160
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
161
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
162
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
163
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
164
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3580098982022828387__call__callbacks'\nactivesupport
|
165
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
166
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
167
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
168
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
169
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
170
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
171
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
172
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
173
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
174
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
175
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
176
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
177
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
178
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
179
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
180
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
181
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
182
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
183
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
184
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/server.rb:295:in
|
185
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
186
|
+
style=\"display: none;\">\n <pre><code>app/models/survey_question.rb:22:in
|
187
|
+
`stamp_responses'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:377:in
|
188
|
+
`_run__418042876317714359__create__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
189
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:306:in
|
190
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/timestamp.rb:57:in
|
191
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/persistence.rb:478:in
|
192
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
193
|
+
`block in create_or_update'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
194
|
+
`_run__418042876317714359__save__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
195
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
196
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/persistence.rb:103:in
|
197
|
+
`save'\nactiverecord (4.0.4) lib/active_record/validations.rb:51:in `save'\nactiverecord
|
198
|
+
(4.0.4) lib/active_record/attribute_methods/dirty.rb:32:in `save'\nactiverecord
|
199
|
+
(4.0.4) lib/active_record/transactions.rb:270:in `block (2 levels) in save'\nactiverecord
|
200
|
+
(4.0.4) lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\nactiverecord
|
201
|
+
(4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
202
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
203
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
204
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:270:in
|
205
|
+
`block in save'\nactiverecord (4.0.4) lib/active_record/transactions.rb:285:in
|
206
|
+
`rollback_active_record_state!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:269:in
|
207
|
+
`save'\nactiverecord (4.0.4) lib/active_record/associations/has_many_association.rb:40:in
|
208
|
+
`insert_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:463:in
|
209
|
+
`block (2 levels) in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:367:in
|
210
|
+
`add_to_target'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:461:in
|
211
|
+
`block in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:152:in
|
212
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
213
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
214
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
215
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
216
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:151:in
|
217
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:460:in
|
218
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:121:in
|
219
|
+
`create'\nactiverecord (4.0.4) lib/active_record/associations/collection_proxy.rb:260:in
|
220
|
+
`create'\napp/controllers/api/v1/survey_questions_controller.rb:30:in
|
221
|
+
`create'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
222
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
223
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
224
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
225
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
226
|
+
`_run__486478572523133459__process_action__callbacks'\nactivesupport (4.0.4)
|
227
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
228
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
229
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
230
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
231
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
232
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
233
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
234
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
235
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
236
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
237
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
238
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
239
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
240
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
241
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
242
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
243
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
244
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
245
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
246
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
247
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
248
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
249
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
250
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
251
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
252
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
253
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
254
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
255
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3580098982022828387__call__callbacks'\nactivesupport
|
256
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
257
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
258
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
259
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
260
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
261
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
262
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
263
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
264
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
265
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
266
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
267
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
268
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
269
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
270
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
271
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
272
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
273
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
274
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
275
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/server.rb:295:in
|
276
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
277
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"survey_question"=>{"question_id"=>nil},\n
|
278
|
+
"format"=>"json",\n "survey_id"=>"9"}</pre>\n\n<div
|
279
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
280
|
+
toggleSessionDump()\">Toggle session dump</a></div>\n <div id=\"session_dump\"
|
281
|
+
style=\"display:none\"><pre></pre></div>\n</div>\n\n<div class=\"details\">\n
|
282
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleEnvDump()\">Toggle
|
283
|
+
env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
284
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
285
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
286
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
287
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
288
|
+
http_version:
|
289
|
+
recorded_at: Sat, 10 Jan 2015 19:50:00 GMT
|
290
|
+
- request:
|
291
|
+
method: post
|
292
|
+
uri: http://localhost:3000/api/surveys/11/survey_questions
|
293
|
+
body:
|
294
|
+
encoding: UTF-8
|
295
|
+
string: '{"survey_question":{"question_id":null,"responses":null}}'
|
296
|
+
headers:
|
297
|
+
User-Agent:
|
298
|
+
- Faraday v0.9.0
|
299
|
+
Content-Type:
|
300
|
+
- application/json
|
301
|
+
Api-Token:
|
302
|
+
- testing
|
303
|
+
User-Token:
|
304
|
+
- 1c9099ec668d4aee55122e0ca3f5ac456886ad501e952d7f261ca22e334652ee
|
305
|
+
Service-User-Id:
|
306
|
+
- df75bcc4fb1d5ee7d95737ea45a76bff17aead18d004d52d7c3d5522af3c23af
|
307
|
+
Accept-Encoding:
|
308
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
309
|
+
Accept:
|
310
|
+
- "*/*"
|
311
|
+
response:
|
312
|
+
status:
|
313
|
+
code: 500
|
314
|
+
message: 'Internal Server Error '
|
315
|
+
headers:
|
316
|
+
Content-Type:
|
317
|
+
- text/html; charset=utf-8
|
318
|
+
Content-Length:
|
319
|
+
- '21574'
|
320
|
+
X-Request-Id:
|
321
|
+
- 3ec5873a-d9c4-41f5-bb61-56ba313cb446
|
322
|
+
X-Runtime:
|
323
|
+
- '0.043907'
|
324
|
+
Server:
|
325
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
326
|
+
Date:
|
327
|
+
- Sat, 10 Jan 2015 20:20:00 GMT
|
328
|
+
Connection:
|
329
|
+
- Keep-Alive
|
330
|
+
body:
|
331
|
+
encoding: UTF-8
|
332
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
333
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
334
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
335
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
336
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
337
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
338
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
339
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
340
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
341
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
342
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
343
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
344
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
345
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
346
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
347
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
348
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
349
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
350
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
351
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
352
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
353
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
354
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
355
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
356
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
357
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
358
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
359
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
360
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
361
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
362
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
363
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
364
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
365
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
366
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
367
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n NoMethodError\n
|
368
|
+
\ in Api::V1::SurveyQuestionsController#create\n </h1>\n</header>\n\n<div
|
369
|
+
id=\"container\">\n <h2>undefined method `responses' for nil:NilClass</h2>\n\n
|
370
|
+
\ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
|
371
|
+
line <strong>#22</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
|
372
|
+
cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
|
373
|
+
class=\"line_numbers\">\n<span>20</span>\n<span>21</span>\n<span>22</span>\n<span>23</span>\n<span>24</span>\n
|
374
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">\n</div><div
|
375
|
+
class=\"line\"> def stamp_responses\n</div><div class=\"line active\"> self.responses
|
376
|
+
= question.responses\n</div><div class=\"line\"> end\n</div><div class=\"line\">end\n</div>\n</pre>\n</td>\n
|
377
|
+
\ </tr>\n </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
378
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
379
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
380
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
381
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
382
|
+
block;\">\n <pre><code>app/models/survey_question.rb:22:in `stamp_responses'\napp/controllers/api/v1/survey_questions_controller.rb:30:in
|
383
|
+
`create'</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
|
384
|
+
none;\">\n <pre><code>activesupport (4.0.4) lib/active_support/callbacks.rb:377:in
|
385
|
+
`_run__418042876317714359__create__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
386
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:306:in
|
387
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/timestamp.rb:57:in
|
388
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/persistence.rb:478:in
|
389
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
390
|
+
`block in create_or_update'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
391
|
+
`_run__418042876317714359__save__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
392
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
393
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/persistence.rb:103:in
|
394
|
+
`save'\nactiverecord (4.0.4) lib/active_record/validations.rb:51:in `save'\nactiverecord
|
395
|
+
(4.0.4) lib/active_record/attribute_methods/dirty.rb:32:in `save'\nactiverecord
|
396
|
+
(4.0.4) lib/active_record/transactions.rb:270:in `block (2 levels) in save'\nactiverecord
|
397
|
+
(4.0.4) lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\nactiverecord
|
398
|
+
(4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
399
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
400
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
401
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:270:in
|
402
|
+
`block in save'\nactiverecord (4.0.4) lib/active_record/transactions.rb:285:in
|
403
|
+
`rollback_active_record_state!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:269:in
|
404
|
+
`save'\nactiverecord (4.0.4) lib/active_record/associations/has_many_association.rb:40:in
|
405
|
+
`insert_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:463:in
|
406
|
+
`block (2 levels) in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:367:in
|
407
|
+
`add_to_target'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:461:in
|
408
|
+
`block in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:152:in
|
409
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
410
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
411
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
412
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
413
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:151:in
|
414
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:460:in
|
415
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:121:in
|
416
|
+
`create'\nactiverecord (4.0.4) lib/active_record/associations/collection_proxy.rb:260:in
|
417
|
+
`create'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
418
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
419
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
420
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
421
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
422
|
+
`_run__486478572523133459__process_action__callbacks'\nactivesupport (4.0.4)
|
423
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
424
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
425
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
426
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
427
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
428
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
429
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
430
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
431
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
432
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
433
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
434
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
435
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
436
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
437
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
438
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
439
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
440
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
441
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
442
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
443
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
444
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
445
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
446
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
447
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
448
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
449
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
450
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
451
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3580098982022828387__call__callbacks'\nactivesupport
|
452
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
453
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
454
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
455
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
456
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
457
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
458
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
459
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
460
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
461
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
462
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
463
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
464
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
465
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
466
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
467
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
468
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
469
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
470
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
471
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/server.rb:295:in
|
472
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
473
|
+
style=\"display: none;\">\n <pre><code>app/models/survey_question.rb:22:in
|
474
|
+
`stamp_responses'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:377:in
|
475
|
+
`_run__418042876317714359__create__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
476
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:306:in
|
477
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/timestamp.rb:57:in
|
478
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/persistence.rb:478:in
|
479
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
480
|
+
`block in create_or_update'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
481
|
+
`_run__418042876317714359__save__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
482
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
483
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/persistence.rb:103:in
|
484
|
+
`save'\nactiverecord (4.0.4) lib/active_record/validations.rb:51:in `save'\nactiverecord
|
485
|
+
(4.0.4) lib/active_record/attribute_methods/dirty.rb:32:in `save'\nactiverecord
|
486
|
+
(4.0.4) lib/active_record/transactions.rb:270:in `block (2 levels) in save'\nactiverecord
|
487
|
+
(4.0.4) lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\nactiverecord
|
488
|
+
(4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
489
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
490
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
491
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:270:in
|
492
|
+
`block in save'\nactiverecord (4.0.4) lib/active_record/transactions.rb:285:in
|
493
|
+
`rollback_active_record_state!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:269:in
|
494
|
+
`save'\nactiverecord (4.0.4) lib/active_record/associations/has_many_association.rb:40:in
|
495
|
+
`insert_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:463:in
|
496
|
+
`block (2 levels) in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:367:in
|
497
|
+
`add_to_target'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:461:in
|
498
|
+
`block in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:152:in
|
499
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
500
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
501
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
502
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
503
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:151:in
|
504
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:460:in
|
505
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:121:in
|
506
|
+
`create'\nactiverecord (4.0.4) lib/active_record/associations/collection_proxy.rb:260:in
|
507
|
+
`create'\napp/controllers/api/v1/survey_questions_controller.rb:30:in
|
508
|
+
`create'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
509
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
510
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
511
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
512
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
513
|
+
`_run__486478572523133459__process_action__callbacks'\nactivesupport (4.0.4)
|
514
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
515
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
516
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
517
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
518
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
519
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
520
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
521
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
522
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
523
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
524
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
525
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
526
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
527
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
528
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
529
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
530
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
531
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
532
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
533
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
534
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
535
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
536
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
537
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
538
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
539
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
540
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
541
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
542
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3580098982022828387__call__callbacks'\nactivesupport
|
543
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
544
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
545
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
546
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
547
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
548
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
549
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
550
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
551
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
552
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
553
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
554
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
555
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
556
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
557
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
558
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
559
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
560
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
561
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
562
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/server.rb:295:in
|
563
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
564
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"survey_question"=>{"question_id"=>nil,\n
|
565
|
+
"responses"=>nil},\n "format"=>"json",\n
|
566
|
+
"survey_id"=>"11"}</pre>\n\n<div class=\"details\">\n
|
567
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
|
568
|
+
session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
|
569
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
570
|
+
toggleEnvDump()\">Toggle env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
571
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
572
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
573
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
574
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
575
|
+
http_version:
|
576
|
+
recorded_at: Sat, 10 Jan 2015 20:20:00 GMT
|
577
|
+
- request:
|
578
|
+
method: post
|
579
|
+
uri: http://localhost:3000/api/surveys/12/survey_questions
|
580
|
+
body:
|
581
|
+
encoding: UTF-8
|
582
|
+
string: '{"survey_question":{"question_id":null,"responses":null}}'
|
583
|
+
headers:
|
584
|
+
User-Agent:
|
585
|
+
- Faraday v0.9.0
|
586
|
+
Content-Type:
|
587
|
+
- application/json
|
588
|
+
Api-Token:
|
589
|
+
- testing
|
590
|
+
User-Token:
|
591
|
+
- 57c4b4ad38ad23774da4a4a09fe5030ffe90d4f230dbe728e057e099345da369
|
592
|
+
Service-User-Id:
|
593
|
+
- aebc73da6676b0e3b4b28283aebb1d98e6167a748570f4423ca3e6d6920d8268
|
594
|
+
Accept-Encoding:
|
595
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
596
|
+
Accept:
|
597
|
+
- "*/*"
|
598
|
+
response:
|
599
|
+
status:
|
600
|
+
code: 500
|
601
|
+
message: 'Internal Server Error '
|
602
|
+
headers:
|
603
|
+
Content-Type:
|
604
|
+
- text/html; charset=utf-8
|
605
|
+
Content-Length:
|
606
|
+
- '21574'
|
607
|
+
X-Request-Id:
|
608
|
+
- 2c516214-2238-4120-8527-8db726db3f3a
|
609
|
+
X-Runtime:
|
610
|
+
- '0.030361'
|
611
|
+
Server:
|
612
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
613
|
+
Date:
|
614
|
+
- Sat, 10 Jan 2015 20:20:22 GMT
|
615
|
+
Connection:
|
616
|
+
- Keep-Alive
|
617
|
+
body:
|
618
|
+
encoding: UTF-8
|
619
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
620
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
621
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
622
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
623
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
624
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
625
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
626
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
627
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
628
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
629
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
630
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
631
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
632
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
633
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
634
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
635
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
636
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
637
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
638
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
639
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
640
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
641
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
642
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
643
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
644
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
645
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
646
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
647
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
648
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
649
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
650
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
651
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
652
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
653
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
654
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n NoMethodError\n
|
655
|
+
\ in Api::V1::SurveyQuestionsController#create\n </h1>\n</header>\n\n<div
|
656
|
+
id=\"container\">\n <h2>undefined method `responses' for nil:NilClass</h2>\n\n
|
657
|
+
\ <div class=\"source\">\n<div class=\"info\">\n Extracted source (around
|
658
|
+
line <strong>#22</strong>):\n</div>\n<div class=\"data\">\n <table cellpadding=\"0\"
|
659
|
+
cellspacing=\"0\" class=\"lines\">\n <tr>\n <td>\n <pre
|
660
|
+
class=\"line_numbers\">\n<span>20</span>\n<span>21</span>\n<span>22</span>\n<span>23</span>\n<span>24</span>\n
|
661
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">\n</div><div
|
662
|
+
class=\"line\"> def stamp_responses\n</div><div class=\"line active\"> self.responses
|
663
|
+
= question.responses\n</div><div class=\"line\"> end\n</div><div class=\"line\">end\n</div>\n</pre>\n</td>\n
|
664
|
+
\ </tr>\n </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
665
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
666
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
667
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
668
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
669
|
+
block;\">\n <pre><code>app/models/survey_question.rb:22:in `stamp_responses'\napp/controllers/api/v1/survey_questions_controller.rb:30:in
|
670
|
+
`create'</code></pre>\n </div>\n <div id=\"Framework-Trace\" style=\"display:
|
671
|
+
none;\">\n <pre><code>activesupport (4.0.4) lib/active_support/callbacks.rb:377:in
|
672
|
+
`_run__418042876317714359__create__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
673
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:306:in
|
674
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/timestamp.rb:57:in
|
675
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/persistence.rb:478:in
|
676
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
677
|
+
`block in create_or_update'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
678
|
+
`_run__418042876317714359__save__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
679
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
680
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/persistence.rb:103:in
|
681
|
+
`save'\nactiverecord (4.0.4) lib/active_record/validations.rb:51:in `save'\nactiverecord
|
682
|
+
(4.0.4) lib/active_record/attribute_methods/dirty.rb:32:in `save'\nactiverecord
|
683
|
+
(4.0.4) lib/active_record/transactions.rb:270:in `block (2 levels) in save'\nactiverecord
|
684
|
+
(4.0.4) lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\nactiverecord
|
685
|
+
(4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
686
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
687
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
688
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:270:in
|
689
|
+
`block in save'\nactiverecord (4.0.4) lib/active_record/transactions.rb:285:in
|
690
|
+
`rollback_active_record_state!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:269:in
|
691
|
+
`save'\nactiverecord (4.0.4) lib/active_record/associations/has_many_association.rb:40:in
|
692
|
+
`insert_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:463:in
|
693
|
+
`block (2 levels) in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:367:in
|
694
|
+
`add_to_target'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:461:in
|
695
|
+
`block in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:152:in
|
696
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
697
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
698
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
699
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
700
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:151:in
|
701
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:460:in
|
702
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:121:in
|
703
|
+
`create'\nactiverecord (4.0.4) lib/active_record/associations/collection_proxy.rb:260:in
|
704
|
+
`create'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
705
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
706
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
707
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
708
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
709
|
+
`_run__486478572523133459__process_action__callbacks'\nactivesupport (4.0.4)
|
710
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
711
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
712
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
713
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
714
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
715
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
716
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
717
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
718
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
719
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
720
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
721
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
722
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
723
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
724
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
725
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
726
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
727
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
728
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
729
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
730
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
731
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
732
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
733
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
734
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
735
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
736
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
737
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
738
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3580098982022828387__call__callbacks'\nactivesupport
|
739
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
740
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
741
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
742
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
743
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
744
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
745
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
746
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
747
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
748
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
749
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
750
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
751
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
752
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
753
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
754
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
755
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
756
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
757
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
758
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/server.rb:295:in
|
759
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
760
|
+
style=\"display: none;\">\n <pre><code>app/models/survey_question.rb:22:in
|
761
|
+
`stamp_responses'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:377:in
|
762
|
+
`_run__418042876317714359__create__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
763
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:306:in
|
764
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/timestamp.rb:57:in
|
765
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/persistence.rb:478:in
|
766
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
767
|
+
`block in create_or_update'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
768
|
+
`_run__418042876317714359__save__callbacks'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:80:in
|
769
|
+
`run_callbacks'\nactiverecord (4.0.4) lib/active_record/callbacks.rb:302:in
|
770
|
+
`create_or_update'\nactiverecord (4.0.4) lib/active_record/persistence.rb:103:in
|
771
|
+
`save'\nactiverecord (4.0.4) lib/active_record/validations.rb:51:in `save'\nactiverecord
|
772
|
+
(4.0.4) lib/active_record/attribute_methods/dirty.rb:32:in `save'\nactiverecord
|
773
|
+
(4.0.4) lib/active_record/transactions.rb:270:in `block (2 levels) in save'\nactiverecord
|
774
|
+
(4.0.4) lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'\nactiverecord
|
775
|
+
(4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
776
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
777
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:327:in
|
778
|
+
`with_transaction_returning_status'\nactiverecord (4.0.4) lib/active_record/transactions.rb:270:in
|
779
|
+
`block in save'\nactiverecord (4.0.4) lib/active_record/transactions.rb:285:in
|
780
|
+
`rollback_active_record_state!'\nactiverecord (4.0.4) lib/active_record/transactions.rb:269:in
|
781
|
+
`save'\nactiverecord (4.0.4) lib/active_record/associations/has_many_association.rb:40:in
|
782
|
+
`insert_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:463:in
|
783
|
+
`block (2 levels) in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:367:in
|
784
|
+
`add_to_target'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:461:in
|
785
|
+
`block in create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:152:in
|
786
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
787
|
+
`block in transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:221:in
|
788
|
+
`within_new_transaction'\nactiverecord (4.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
|
789
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/transactions.rb:209:in
|
790
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:151:in
|
791
|
+
`transaction'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:460:in
|
792
|
+
`create_record'\nactiverecord (4.0.4) lib/active_record/associations/collection_association.rb:121:in
|
793
|
+
`create'\nactiverecord (4.0.4) lib/active_record/associations/collection_proxy.rb:260:in
|
794
|
+
`create'\napp/controllers/api/v1/survey_questions_controller.rb:30:in
|
795
|
+
`create'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
796
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
797
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
798
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
799
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:393:in
|
800
|
+
`_run__486478572523133459__process_action__callbacks'\nactivesupport (4.0.4)
|
801
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
802
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
803
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
804
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
805
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
806
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
807
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
808
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
809
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
810
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
811
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
812
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
813
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
814
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
815
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
816
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
817
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/mapper.rb:44:in
|
818
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
819
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
820
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
821
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
822
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
823
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
824
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
825
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
826
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
827
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
828
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
829
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__3580098982022828387__call__callbacks'\nactivesupport
|
830
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
831
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
832
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
833
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
834
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
835
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
836
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
837
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
838
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
839
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
840
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
841
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
842
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
843
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
844
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
845
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
846
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
847
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
848
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
849
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/server.rb:295:in
|
850
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
851
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"survey_question"=>{"question_id"=>nil,\n
|
852
|
+
"responses"=>nil},\n "format"=>"json",\n
|
853
|
+
"survey_id"=>"12"}</pre>\n\n<div class=\"details\">\n
|
854
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleSessionDump()\">Toggle
|
855
|
+
session dump</a></div>\n <div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n</div>\n\n<div
|
856
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
857
|
+
toggleEnvDump()\">Toggle env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
858
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
859
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
860
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
861
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
862
|
+
http_version:
|
863
|
+
recorded_at: Sat, 10 Jan 2015 20:20:22 GMT
|
864
|
+
- request:
|
865
|
+
method: post
|
866
|
+
uri: http://localhost:3000/api/surveys/13/survey_questions
|
867
|
+
body:
|
868
|
+
encoding: UTF-8
|
869
|
+
string: '{"survey_question":{"question_id":43,"responses":null}}'
|
870
|
+
headers:
|
871
|
+
User-Agent:
|
872
|
+
- Faraday v0.9.0
|
873
|
+
Content-Type:
|
874
|
+
- application/json
|
875
|
+
Api-Token:
|
876
|
+
- testing
|
877
|
+
User-Token:
|
878
|
+
- 84198d40c1aa14e9d13f208b183215e918a14cf90747503a46e6adf16d75bfb6
|
879
|
+
Service-User-Id:
|
880
|
+
- 427b636baa5e3fb657d1fed5a733ed2588e0f90320f74e9214887457dd98c817
|
881
|
+
Accept-Encoding:
|
882
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
883
|
+
Accept:
|
884
|
+
- "*/*"
|
885
|
+
response:
|
886
|
+
status:
|
887
|
+
code: 201
|
888
|
+
message: 'Created '
|
889
|
+
headers:
|
890
|
+
X-Frame-Options:
|
891
|
+
- SAMEORIGIN
|
892
|
+
X-Xss-Protection:
|
893
|
+
- 1; mode=block
|
894
|
+
X-Content-Type-Options:
|
895
|
+
- nosniff
|
896
|
+
X-Ua-Compatible:
|
897
|
+
- chrome=1
|
898
|
+
Content-Type:
|
899
|
+
- application/json; charset=utf-8
|
900
|
+
Etag:
|
901
|
+
- '"51f013a70ad72178cfbc76b858a4254c"'
|
902
|
+
Cache-Control:
|
903
|
+
- max-age=0, private, must-revalidate
|
904
|
+
X-Request-Id:
|
905
|
+
- e75897e1-3295-49e0-8661-9227ada5f586
|
906
|
+
X-Runtime:
|
907
|
+
- '0.020331'
|
908
|
+
Server:
|
909
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
910
|
+
Date:
|
911
|
+
- Sat, 10 Jan 2015 20:24:41 GMT
|
912
|
+
Content-Length:
|
913
|
+
- '494'
|
914
|
+
Connection:
|
915
|
+
- Keep-Alive
|
916
|
+
body:
|
917
|
+
encoding: UTF-8
|
918
|
+
string: |-
|
919
|
+
{
|
920
|
+
"id": 1,
|
921
|
+
"text": "Do you like poptarts?",
|
922
|
+
"question_type": "boolean",
|
923
|
+
"responses": [
|
924
|
+
"t",
|
925
|
+
"f"
|
926
|
+
],
|
927
|
+
"answer": null,
|
928
|
+
"_links": {
|
929
|
+
"self": {
|
930
|
+
"href": "http://localhost:3000/api/surveys/13/survey_questions/1"
|
931
|
+
},
|
932
|
+
"put": {
|
933
|
+
"href": "http://localhost:3000/api/surveys/13/survey_questions/1"
|
934
|
+
},
|
935
|
+
"survey": {
|
936
|
+
"href": "http://localhost:3000/api/surveys/13"
|
937
|
+
}
|
938
|
+
},
|
939
|
+
"created_at": "2015-01-10T20:24:41.573Z",
|
940
|
+
"key": null,
|
941
|
+
"question_id": 43
|
942
|
+
}
|
943
|
+
http_version:
|
944
|
+
recorded_at: Sat, 10 Jan 2015 20:24:41 GMT
|
945
|
+
- request:
|
946
|
+
method: get
|
947
|
+
uri: http://localhost:3000/api/surveys/13
|
948
|
+
body:
|
949
|
+
encoding: US-ASCII
|
950
|
+
string: ''
|
951
|
+
headers:
|
952
|
+
User-Agent:
|
953
|
+
- Faraday v0.9.0
|
954
|
+
Content-Type:
|
955
|
+
- application/json
|
956
|
+
Api-Token:
|
957
|
+
- testing
|
958
|
+
User-Token:
|
959
|
+
- 84198d40c1aa14e9d13f208b183215e918a14cf90747503a46e6adf16d75bfb6
|
960
|
+
Service-User-Id:
|
961
|
+
- 427b636baa5e3fb657d1fed5a733ed2588e0f90320f74e9214887457dd98c817
|
962
|
+
Accept-Encoding:
|
963
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
964
|
+
Accept:
|
965
|
+
- "*/*"
|
966
|
+
response:
|
967
|
+
status:
|
968
|
+
code: 200
|
969
|
+
message: 'OK '
|
970
|
+
headers:
|
971
|
+
X-Frame-Options:
|
972
|
+
- SAMEORIGIN
|
973
|
+
X-Xss-Protection:
|
974
|
+
- 1; mode=block
|
975
|
+
X-Content-Type-Options:
|
976
|
+
- nosniff
|
977
|
+
X-Ua-Compatible:
|
978
|
+
- chrome=1
|
979
|
+
Content-Type:
|
980
|
+
- application/json; charset=utf-8
|
981
|
+
Etag:
|
982
|
+
- '"b1fc0a928cb6db937ad863f52a2a12c6"'
|
983
|
+
Cache-Control:
|
984
|
+
- max-age=0, private, must-revalidate
|
985
|
+
X-Request-Id:
|
986
|
+
- f3656937-adf9-45fa-b33c-bbfe3836e8f7
|
987
|
+
X-Runtime:
|
988
|
+
- '0.019236'
|
989
|
+
Server:
|
990
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
991
|
+
Date:
|
992
|
+
- Sat, 10 Jan 2015 20:24:41 GMT
|
993
|
+
Content-Length:
|
994
|
+
- '1062'
|
995
|
+
Connection:
|
996
|
+
- Keep-Alive
|
997
|
+
body:
|
998
|
+
encoding: UTF-8
|
999
|
+
string: |-
|
1000
|
+
{
|
1001
|
+
"id": 13,
|
1002
|
+
"service_user_id": "427b636baa5e3fb657d1fed5a733ed2588e0f90320f74e9214887457dd98c817",
|
1003
|
+
"_links": {
|
1004
|
+
"self": {
|
1005
|
+
"href": "http://localhost:3000/api/surveys/13"
|
1006
|
+
},
|
1007
|
+
"survey_questions": {
|
1008
|
+
"post": {
|
1009
|
+
"href": "http://localhost:3000/api/surveys/13/survey_questions"
|
1010
|
+
},
|
1011
|
+
"put": {
|
1012
|
+
"href": "http://localhost:3000/api/surveys/13/survey_questions"
|
1013
|
+
}
|
1014
|
+
}
|
1015
|
+
},
|
1016
|
+
"completed": false,
|
1017
|
+
"survey_questions": [
|
1018
|
+
{
|
1019
|
+
"id": 1,
|
1020
|
+
"text": "Do you like poptarts?",
|
1021
|
+
"question_type": "boolean",
|
1022
|
+
"responses": [
|
1023
|
+
"t",
|
1024
|
+
"f"
|
1025
|
+
],
|
1026
|
+
"answer": null,
|
1027
|
+
"_links": {
|
1028
|
+
"self": {
|
1029
|
+
"href": "http://localhost:3000/api/surveys/13/survey_questions/1"
|
1030
|
+
},
|
1031
|
+
"put": {
|
1032
|
+
"href": "http://localhost:3000/api/surveys/13/survey_questions/1"
|
1033
|
+
},
|
1034
|
+
"survey": {
|
1035
|
+
"href": "http://localhost:3000/api/surveys/13"
|
1036
|
+
}
|
1037
|
+
},
|
1038
|
+
"created_at": "2015-01-10T20:24:41.573Z",
|
1039
|
+
"key": null,
|
1040
|
+
"question_id": 43
|
1041
|
+
}
|
1042
|
+
]
|
1043
|
+
}
|
1044
|
+
http_version:
|
1045
|
+
recorded_at: Sat, 10 Jan 2015 20:24:41 GMT
|
1046
|
+
- request:
|
1047
|
+
method: post
|
1048
|
+
uri: http://localhost:3000/api/surveys/14/survey_questions
|
1049
|
+
body:
|
1050
|
+
encoding: UTF-8
|
1051
|
+
string: '{"survey_question":{"question_id":44,"responses":null}}'
|
1052
|
+
headers:
|
1053
|
+
User-Agent:
|
1054
|
+
- Faraday v0.9.0
|
1055
|
+
Content-Type:
|
1056
|
+
- application/json
|
1057
|
+
Api-Token:
|
1058
|
+
- testing
|
1059
|
+
User-Token:
|
1060
|
+
- 9b550780343170a30714b3e681ba8fb2a0c6f351293e9f26a225c1c0470a2874
|
1061
|
+
Service-User-Id:
|
1062
|
+
- cfc1348c8b0a3d8f4d80dced3a40316c577d65d556feabbbc6b102a20855347a
|
1063
|
+
Accept-Encoding:
|
1064
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1065
|
+
Accept:
|
1066
|
+
- "*/*"
|
1067
|
+
response:
|
1068
|
+
status:
|
1069
|
+
code: 201
|
1070
|
+
message: 'Created '
|
1071
|
+
headers:
|
1072
|
+
X-Frame-Options:
|
1073
|
+
- SAMEORIGIN
|
1074
|
+
X-Xss-Protection:
|
1075
|
+
- 1; mode=block
|
1076
|
+
X-Content-Type-Options:
|
1077
|
+
- nosniff
|
1078
|
+
X-Ua-Compatible:
|
1079
|
+
- chrome=1
|
1080
|
+
Content-Type:
|
1081
|
+
- application/json; charset=utf-8
|
1082
|
+
Etag:
|
1083
|
+
- '"5e91425f98b7760019ff9b8e859fddd4"'
|
1084
|
+
Cache-Control:
|
1085
|
+
- max-age=0, private, must-revalidate
|
1086
|
+
X-Request-Id:
|
1087
|
+
- 83c829df-b74b-447d-98c4-72ddeac5f891
|
1088
|
+
X-Runtime:
|
1089
|
+
- '0.013938'
|
1090
|
+
Server:
|
1091
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1092
|
+
Date:
|
1093
|
+
- Sat, 10 Jan 2015 20:28:37 GMT
|
1094
|
+
Content-Length:
|
1095
|
+
- '494'
|
1096
|
+
Connection:
|
1097
|
+
- Keep-Alive
|
1098
|
+
body:
|
1099
|
+
encoding: UTF-8
|
1100
|
+
string: |-
|
1101
|
+
{
|
1102
|
+
"id": 2,
|
1103
|
+
"text": "Do you like poptarts?",
|
1104
|
+
"question_type": "boolean",
|
1105
|
+
"responses": [
|
1106
|
+
"t",
|
1107
|
+
"f"
|
1108
|
+
],
|
1109
|
+
"answer": null,
|
1110
|
+
"_links": {
|
1111
|
+
"self": {
|
1112
|
+
"href": "http://localhost:3000/api/surveys/14/survey_questions/2"
|
1113
|
+
},
|
1114
|
+
"put": {
|
1115
|
+
"href": "http://localhost:3000/api/surveys/14/survey_questions/2"
|
1116
|
+
},
|
1117
|
+
"survey": {
|
1118
|
+
"href": "http://localhost:3000/api/surveys/14"
|
1119
|
+
}
|
1120
|
+
},
|
1121
|
+
"created_at": "2015-01-10T20:28:37.512Z",
|
1122
|
+
"key": null,
|
1123
|
+
"question_id": 44
|
1124
|
+
}
|
1125
|
+
http_version:
|
1126
|
+
recorded_at: Sat, 10 Jan 2015 20:28:37 GMT
|
1127
|
+
- request:
|
1128
|
+
method: get
|
1129
|
+
uri: http://localhost:3000/api/surveys/14
|
1130
|
+
body:
|
1131
|
+
encoding: US-ASCII
|
1132
|
+
string: ''
|
1133
|
+
headers:
|
1134
|
+
User-Agent:
|
1135
|
+
- Faraday v0.9.0
|
1136
|
+
Content-Type:
|
1137
|
+
- application/json
|
1138
|
+
Api-Token:
|
1139
|
+
- testing
|
1140
|
+
User-Token:
|
1141
|
+
- 9b550780343170a30714b3e681ba8fb2a0c6f351293e9f26a225c1c0470a2874
|
1142
|
+
Service-User-Id:
|
1143
|
+
- cfc1348c8b0a3d8f4d80dced3a40316c577d65d556feabbbc6b102a20855347a
|
1144
|
+
Accept-Encoding:
|
1145
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1146
|
+
Accept:
|
1147
|
+
- "*/*"
|
1148
|
+
response:
|
1149
|
+
status:
|
1150
|
+
code: 200
|
1151
|
+
message: 'OK '
|
1152
|
+
headers:
|
1153
|
+
X-Frame-Options:
|
1154
|
+
- SAMEORIGIN
|
1155
|
+
X-Xss-Protection:
|
1156
|
+
- 1; mode=block
|
1157
|
+
X-Content-Type-Options:
|
1158
|
+
- nosniff
|
1159
|
+
X-Ua-Compatible:
|
1160
|
+
- chrome=1
|
1161
|
+
Content-Type:
|
1162
|
+
- application/json; charset=utf-8
|
1163
|
+
Etag:
|
1164
|
+
- '"c3efae9a7708a8a6bcc94d1aac0730eb"'
|
1165
|
+
Cache-Control:
|
1166
|
+
- max-age=0, private, must-revalidate
|
1167
|
+
X-Request-Id:
|
1168
|
+
- 5b5068e4-b4b6-4d15-9335-ad45f0f10d88
|
1169
|
+
X-Runtime:
|
1170
|
+
- '0.013417'
|
1171
|
+
Server:
|
1172
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1173
|
+
Date:
|
1174
|
+
- Sat, 10 Jan 2015 20:28:37 GMT
|
1175
|
+
Content-Length:
|
1176
|
+
- '1062'
|
1177
|
+
Connection:
|
1178
|
+
- Keep-Alive
|
1179
|
+
body:
|
1180
|
+
encoding: UTF-8
|
1181
|
+
string: |-
|
1182
|
+
{
|
1183
|
+
"id": 14,
|
1184
|
+
"service_user_id": "cfc1348c8b0a3d8f4d80dced3a40316c577d65d556feabbbc6b102a20855347a",
|
1185
|
+
"_links": {
|
1186
|
+
"self": {
|
1187
|
+
"href": "http://localhost:3000/api/surveys/14"
|
1188
|
+
},
|
1189
|
+
"survey_questions": {
|
1190
|
+
"post": {
|
1191
|
+
"href": "http://localhost:3000/api/surveys/14/survey_questions"
|
1192
|
+
},
|
1193
|
+
"put": {
|
1194
|
+
"href": "http://localhost:3000/api/surveys/14/survey_questions"
|
1195
|
+
}
|
1196
|
+
}
|
1197
|
+
},
|
1198
|
+
"completed": false,
|
1199
|
+
"survey_questions": [
|
1200
|
+
{
|
1201
|
+
"id": 2,
|
1202
|
+
"text": "Do you like poptarts?",
|
1203
|
+
"question_type": "boolean",
|
1204
|
+
"responses": [
|
1205
|
+
"t",
|
1206
|
+
"f"
|
1207
|
+
],
|
1208
|
+
"answer": null,
|
1209
|
+
"_links": {
|
1210
|
+
"self": {
|
1211
|
+
"href": "http://localhost:3000/api/surveys/14/survey_questions/2"
|
1212
|
+
},
|
1213
|
+
"put": {
|
1214
|
+
"href": "http://localhost:3000/api/surveys/14/survey_questions/2"
|
1215
|
+
},
|
1216
|
+
"survey": {
|
1217
|
+
"href": "http://localhost:3000/api/surveys/14"
|
1218
|
+
}
|
1219
|
+
},
|
1220
|
+
"created_at": "2015-01-10T20:28:37.512Z",
|
1221
|
+
"key": null,
|
1222
|
+
"question_id": 44
|
1223
|
+
}
|
1224
|
+
]
|
1225
|
+
}
|
1226
|
+
http_version:
|
1227
|
+
recorded_at: Sat, 10 Jan 2015 20:28:37 GMT
|
1228
|
+
- request:
|
1229
|
+
method: post
|
1230
|
+
uri: http://localhost:3000/api/surveys/15/survey_questions
|
1231
|
+
body:
|
1232
|
+
encoding: UTF-8
|
1233
|
+
string: '{"survey_question":{"question_id":45,"responses":null}}'
|
1234
|
+
headers:
|
1235
|
+
User-Agent:
|
1236
|
+
- Faraday v0.9.0
|
1237
|
+
Content-Type:
|
1238
|
+
- application/json
|
1239
|
+
Api-Token:
|
1240
|
+
- testing
|
1241
|
+
User-Token:
|
1242
|
+
- 5de20e7ca928a8ff2d4b079861b42b4cd782f609f1e63d6d83492733c02cb00e
|
1243
|
+
Service-User-Id:
|
1244
|
+
- 3096b37d8022d7d8a923143acd32a55f257fd805ecacce5b648e6b8e0b2832ba
|
1245
|
+
Accept-Encoding:
|
1246
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1247
|
+
Accept:
|
1248
|
+
- "*/*"
|
1249
|
+
response:
|
1250
|
+
status:
|
1251
|
+
code: 201
|
1252
|
+
message: 'Created '
|
1253
|
+
headers:
|
1254
|
+
X-Frame-Options:
|
1255
|
+
- SAMEORIGIN
|
1256
|
+
X-Xss-Protection:
|
1257
|
+
- 1; mode=block
|
1258
|
+
X-Content-Type-Options:
|
1259
|
+
- nosniff
|
1260
|
+
X-Ua-Compatible:
|
1261
|
+
- chrome=1
|
1262
|
+
Content-Type:
|
1263
|
+
- application/json; charset=utf-8
|
1264
|
+
Etag:
|
1265
|
+
- '"2c59e1b15f42dc8450b5baa59882411d"'
|
1266
|
+
Cache-Control:
|
1267
|
+
- max-age=0, private, must-revalidate
|
1268
|
+
X-Request-Id:
|
1269
|
+
- c4c365b8-57d9-4fab-8141-5c981058eb37
|
1270
|
+
X-Runtime:
|
1271
|
+
- '0.012257'
|
1272
|
+
Server:
|
1273
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1274
|
+
Date:
|
1275
|
+
- Sat, 10 Jan 2015 20:28:54 GMT
|
1276
|
+
Content-Length:
|
1277
|
+
- '494'
|
1278
|
+
Connection:
|
1279
|
+
- Keep-Alive
|
1280
|
+
body:
|
1281
|
+
encoding: UTF-8
|
1282
|
+
string: |-
|
1283
|
+
{
|
1284
|
+
"id": 3,
|
1285
|
+
"text": "Do you like poptarts?",
|
1286
|
+
"question_type": "boolean",
|
1287
|
+
"responses": [
|
1288
|
+
"t",
|
1289
|
+
"f"
|
1290
|
+
],
|
1291
|
+
"answer": null,
|
1292
|
+
"_links": {
|
1293
|
+
"self": {
|
1294
|
+
"href": "http://localhost:3000/api/surveys/15/survey_questions/3"
|
1295
|
+
},
|
1296
|
+
"put": {
|
1297
|
+
"href": "http://localhost:3000/api/surveys/15/survey_questions/3"
|
1298
|
+
},
|
1299
|
+
"survey": {
|
1300
|
+
"href": "http://localhost:3000/api/surveys/15"
|
1301
|
+
}
|
1302
|
+
},
|
1303
|
+
"created_at": "2015-01-10T20:28:54.067Z",
|
1304
|
+
"key": null,
|
1305
|
+
"question_id": 45
|
1306
|
+
}
|
1307
|
+
http_version:
|
1308
|
+
recorded_at: Sat, 10 Jan 2015 20:28:54 GMT
|
1309
|
+
- request:
|
1310
|
+
method: get
|
1311
|
+
uri: http://localhost:3000/api/surveys/15
|
1312
|
+
body:
|
1313
|
+
encoding: US-ASCII
|
1314
|
+
string: ''
|
1315
|
+
headers:
|
1316
|
+
User-Agent:
|
1317
|
+
- Faraday v0.9.0
|
1318
|
+
Content-Type:
|
1319
|
+
- application/json
|
1320
|
+
Api-Token:
|
1321
|
+
- testing
|
1322
|
+
User-Token:
|
1323
|
+
- 5de20e7ca928a8ff2d4b079861b42b4cd782f609f1e63d6d83492733c02cb00e
|
1324
|
+
Service-User-Id:
|
1325
|
+
- 3096b37d8022d7d8a923143acd32a55f257fd805ecacce5b648e6b8e0b2832ba
|
1326
|
+
Accept-Encoding:
|
1327
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1328
|
+
Accept:
|
1329
|
+
- "*/*"
|
1330
|
+
response:
|
1331
|
+
status:
|
1332
|
+
code: 200
|
1333
|
+
message: 'OK '
|
1334
|
+
headers:
|
1335
|
+
X-Frame-Options:
|
1336
|
+
- SAMEORIGIN
|
1337
|
+
X-Xss-Protection:
|
1338
|
+
- 1; mode=block
|
1339
|
+
X-Content-Type-Options:
|
1340
|
+
- nosniff
|
1341
|
+
X-Ua-Compatible:
|
1342
|
+
- chrome=1
|
1343
|
+
Content-Type:
|
1344
|
+
- application/json; charset=utf-8
|
1345
|
+
Etag:
|
1346
|
+
- '"ccc02e198b14381453f352104ddaf84e"'
|
1347
|
+
Cache-Control:
|
1348
|
+
- max-age=0, private, must-revalidate
|
1349
|
+
X-Request-Id:
|
1350
|
+
- add05ad9-3b2f-44e0-bd6c-b033c90492cd
|
1351
|
+
X-Runtime:
|
1352
|
+
- '0.014316'
|
1353
|
+
Server:
|
1354
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1355
|
+
Date:
|
1356
|
+
- Sat, 10 Jan 2015 20:28:54 GMT
|
1357
|
+
Content-Length:
|
1358
|
+
- '1062'
|
1359
|
+
Connection:
|
1360
|
+
- Keep-Alive
|
1361
|
+
body:
|
1362
|
+
encoding: UTF-8
|
1363
|
+
string: |-
|
1364
|
+
{
|
1365
|
+
"id": 15,
|
1366
|
+
"service_user_id": "3096b37d8022d7d8a923143acd32a55f257fd805ecacce5b648e6b8e0b2832ba",
|
1367
|
+
"_links": {
|
1368
|
+
"self": {
|
1369
|
+
"href": "http://localhost:3000/api/surveys/15"
|
1370
|
+
},
|
1371
|
+
"survey_questions": {
|
1372
|
+
"post": {
|
1373
|
+
"href": "http://localhost:3000/api/surveys/15/survey_questions"
|
1374
|
+
},
|
1375
|
+
"put": {
|
1376
|
+
"href": "http://localhost:3000/api/surveys/15/survey_questions"
|
1377
|
+
}
|
1378
|
+
}
|
1379
|
+
},
|
1380
|
+
"completed": false,
|
1381
|
+
"survey_questions": [
|
1382
|
+
{
|
1383
|
+
"id": 3,
|
1384
|
+
"text": "Do you like poptarts?",
|
1385
|
+
"question_type": "boolean",
|
1386
|
+
"responses": [
|
1387
|
+
"t",
|
1388
|
+
"f"
|
1389
|
+
],
|
1390
|
+
"answer": null,
|
1391
|
+
"_links": {
|
1392
|
+
"self": {
|
1393
|
+
"href": "http://localhost:3000/api/surveys/15/survey_questions/3"
|
1394
|
+
},
|
1395
|
+
"put": {
|
1396
|
+
"href": "http://localhost:3000/api/surveys/15/survey_questions/3"
|
1397
|
+
},
|
1398
|
+
"survey": {
|
1399
|
+
"href": "http://localhost:3000/api/surveys/15"
|
1400
|
+
}
|
1401
|
+
},
|
1402
|
+
"created_at": "2015-01-10T20:28:54.067Z",
|
1403
|
+
"key": null,
|
1404
|
+
"question_id": 45
|
1405
|
+
}
|
1406
|
+
]
|
1407
|
+
}
|
1408
|
+
http_version:
|
1409
|
+
recorded_at: Sat, 10 Jan 2015 20:28:54 GMT
|
1410
|
+
- request:
|
1411
|
+
method: get
|
1412
|
+
uri: http://localhost:3000/
|
1413
|
+
body:
|
1414
|
+
encoding: US-ASCII
|
1415
|
+
string: ''
|
1416
|
+
headers:
|
1417
|
+
User-Agent:
|
1418
|
+
- Faraday v0.9.0
|
1419
|
+
Content-Type:
|
1420
|
+
- application/json
|
1421
|
+
Api-Token:
|
1422
|
+
- testing
|
1423
|
+
User-Token:
|
1424
|
+
- 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
|
1425
|
+
Service-User-Id:
|
1426
|
+
- fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
|
1427
|
+
Accept-Encoding:
|
1428
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1429
|
+
Accept:
|
1430
|
+
- "*/*"
|
1431
|
+
response:
|
1432
|
+
status:
|
1433
|
+
code: 200
|
1434
|
+
message: 'OK '
|
1435
|
+
headers:
|
1436
|
+
X-Frame-Options:
|
1437
|
+
- SAMEORIGIN
|
1438
|
+
X-Xss-Protection:
|
1439
|
+
- 1; mode=block
|
1440
|
+
X-Content-Type-Options:
|
1441
|
+
- nosniff
|
1442
|
+
X-Ua-Compatible:
|
1443
|
+
- chrome=1
|
1444
|
+
Content-Type:
|
1445
|
+
- application/json; charset=utf-8
|
1446
|
+
Etag:
|
1447
|
+
- '"3a543c1faf13608a2dcffc78fccf95fd"'
|
1448
|
+
Cache-Control:
|
1449
|
+
- max-age=0, private, must-revalidate
|
1450
|
+
X-Request-Id:
|
1451
|
+
- 3a2fc888-958d-4976-8aab-b117c0211cbc
|
1452
|
+
X-Runtime:
|
1453
|
+
- '0.006695'
|
1454
|
+
Server:
|
1455
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1456
|
+
Date:
|
1457
|
+
- Sun, 25 Jan 2015 13:55:25 GMT
|
1458
|
+
Content-Length:
|
1459
|
+
- '1469'
|
1460
|
+
Connection:
|
1461
|
+
- Keep-Alive
|
1462
|
+
body:
|
1463
|
+
encoding: UTF-8
|
1464
|
+
string: |-
|
1465
|
+
{
|
1466
|
+
"_links": [
|
1467
|
+
{
|
1468
|
+
"href": "http://localhost:3000/",
|
1469
|
+
"rel": "self",
|
1470
|
+
"method": "GET"
|
1471
|
+
},
|
1472
|
+
{
|
1473
|
+
"href": "http://localhost:3000/api/surveys{/id}{?query*}",
|
1474
|
+
"rel": "surveys",
|
1475
|
+
"method": "GET"
|
1476
|
+
},
|
1477
|
+
{
|
1478
|
+
"href": "http://localhost:3000/api/surveys",
|
1479
|
+
"rel": "surveys",
|
1480
|
+
"method": "POST"
|
1481
|
+
},
|
1482
|
+
{
|
1483
|
+
"href": "http://localhost:3000/api/user{/id}{?query*}",
|
1484
|
+
"rel": "users",
|
1485
|
+
"method": "GET"
|
1486
|
+
},
|
1487
|
+
{
|
1488
|
+
"href": "http://localhost:3000/api/user",
|
1489
|
+
"rel": "users",
|
1490
|
+
"method": "POST"
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
"href": "http://localhost:3000/api/questions{/id}{?query*}",
|
1494
|
+
"rel": "questions",
|
1495
|
+
"method": "GET"
|
1496
|
+
},
|
1497
|
+
{
|
1498
|
+
"href": "http://localhost:3000/api/questions",
|
1499
|
+
"rel": "questions",
|
1500
|
+
"method": "POST"
|
1501
|
+
},
|
1502
|
+
{
|
1503
|
+
"href": "http://localhost:3000/api/questions/surveys/{survey_id}/survey_questions{/id}{?query*}",
|
1504
|
+
"rel": "survey-questions",
|
1505
|
+
"method": "GET"
|
1506
|
+
},
|
1507
|
+
{
|
1508
|
+
"href": "http://localhost:3000/api/questions/surveys/{survey_id}/survey_questions",
|
1509
|
+
"rel": "survey-questions",
|
1510
|
+
"method": "POST"
|
1511
|
+
},
|
1512
|
+
{
|
1513
|
+
"href": "http://localhost:3000/api/questions/surveys/{survey_id}/survey_questions{/id}",
|
1514
|
+
"rel": "survey-questions",
|
1515
|
+
"method": "PUT"
|
1516
|
+
},
|
1517
|
+
{
|
1518
|
+
"href": "http://localhost:3000/api/questions/survey_questions{?query*}",
|
1519
|
+
"rel": "survey-questions-by-query",
|
1520
|
+
"method": "GET"
|
1521
|
+
}
|
1522
|
+
]
|
1523
|
+
}
|
1524
|
+
http_version:
|
1525
|
+
recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
|
1526
|
+
- request:
|
1527
|
+
method: post
|
1528
|
+
uri: http://localhost:3000/api/questions
|
1529
|
+
body:
|
1530
|
+
encoding: UTF-8
|
1531
|
+
string: '{"question":{"question_type":"boolean","responses":[true,false],"text":"Do
|
1532
|
+
you like poptarts?","key":null}}'
|
1533
|
+
headers:
|
1534
|
+
User-Agent:
|
1535
|
+
- Faraday v0.9.0
|
1536
|
+
Content-Type:
|
1537
|
+
- application/json
|
1538
|
+
Api-Token:
|
1539
|
+
- testing
|
1540
|
+
User-Token:
|
1541
|
+
- 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
|
1542
|
+
Service-User-Id:
|
1543
|
+
- fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
|
1544
|
+
Accept-Encoding:
|
1545
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1546
|
+
Accept:
|
1547
|
+
- "*/*"
|
1548
|
+
response:
|
1549
|
+
status:
|
1550
|
+
code: 201
|
1551
|
+
message: 'Created '
|
1552
|
+
headers:
|
1553
|
+
X-Frame-Options:
|
1554
|
+
- SAMEORIGIN
|
1555
|
+
X-Xss-Protection:
|
1556
|
+
- 1; mode=block
|
1557
|
+
X-Content-Type-Options:
|
1558
|
+
- nosniff
|
1559
|
+
X-Ua-Compatible:
|
1560
|
+
- chrome=1
|
1561
|
+
Content-Type:
|
1562
|
+
- application/json; charset=utf-8
|
1563
|
+
Etag:
|
1564
|
+
- '"15f71bb014313905d90797b2215f137a"'
|
1565
|
+
Cache-Control:
|
1566
|
+
- max-age=0, private, must-revalidate
|
1567
|
+
X-Request-Id:
|
1568
|
+
- 02b80bdf-be83-4881-93ef-13cd879bedcf
|
1569
|
+
X-Runtime:
|
1570
|
+
- '0.028657'
|
1571
|
+
Server:
|
1572
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1573
|
+
Date:
|
1574
|
+
- Sun, 25 Jan 2015 13:55:25 GMT
|
1575
|
+
Content-Length:
|
1576
|
+
- '266'
|
1577
|
+
Connection:
|
1578
|
+
- Keep-Alive
|
1579
|
+
body:
|
1580
|
+
encoding: UTF-8
|
1581
|
+
string: |-
|
1582
|
+
{
|
1583
|
+
"id": 84,
|
1584
|
+
"question_type": "boolean",
|
1585
|
+
"text": "Do you like poptarts?",
|
1586
|
+
"responses": [
|
1587
|
+
true,
|
1588
|
+
false
|
1589
|
+
],
|
1590
|
+
"key": null,
|
1591
|
+
"_links": [
|
1592
|
+
{
|
1593
|
+
"rel": "self",
|
1594
|
+
"href": "http://localhost:3000/api/questions/84",
|
1595
|
+
"method": "GET"
|
1596
|
+
}
|
1597
|
+
]
|
1598
|
+
}
|
1599
|
+
http_version:
|
1600
|
+
recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
|
1601
|
+
- request:
|
1602
|
+
method: post
|
1603
|
+
uri: http://localhost:3000/api/user
|
1604
|
+
body:
|
1605
|
+
encoding: UTF-8
|
1606
|
+
string: "{}"
|
1607
|
+
headers:
|
1608
|
+
User-Agent:
|
1609
|
+
- Faraday v0.9.0
|
1610
|
+
Content-Type:
|
1611
|
+
- application/json
|
1612
|
+
Api-Token:
|
1613
|
+
- testing
|
1614
|
+
User-Token:
|
1615
|
+
- 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
|
1616
|
+
Service-User-Id:
|
1617
|
+
- fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
|
1618
|
+
Accept-Encoding:
|
1619
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1620
|
+
Accept:
|
1621
|
+
- "*/*"
|
1622
|
+
response:
|
1623
|
+
status:
|
1624
|
+
code: 201
|
1625
|
+
message: 'Created '
|
1626
|
+
headers:
|
1627
|
+
X-Frame-Options:
|
1628
|
+
- SAMEORIGIN
|
1629
|
+
X-Xss-Protection:
|
1630
|
+
- 1; mode=block
|
1631
|
+
X-Content-Type-Options:
|
1632
|
+
- nosniff
|
1633
|
+
X-Ua-Compatible:
|
1634
|
+
- chrome=1
|
1635
|
+
Content-Type:
|
1636
|
+
- application/json; charset=utf-8
|
1637
|
+
Etag:
|
1638
|
+
- '"b960ad0e627ac984185568e9954d3144"'
|
1639
|
+
Cache-Control:
|
1640
|
+
- max-age=0, private, must-revalidate
|
1641
|
+
X-Request-Id:
|
1642
|
+
- 50c8ae1a-e424-4906-b324-4d434de6d161
|
1643
|
+
X-Runtime:
|
1644
|
+
- '0.007401'
|
1645
|
+
Server:
|
1646
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1647
|
+
Date:
|
1648
|
+
- Sun, 25 Jan 2015 13:55:25 GMT
|
1649
|
+
Content-Length:
|
1650
|
+
- '292'
|
1651
|
+
Connection:
|
1652
|
+
- Keep-Alive
|
1653
|
+
body:
|
1654
|
+
encoding: UTF-8
|
1655
|
+
string: |-
|
1656
|
+
{
|
1657
|
+
"service_user_id": "fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac",
|
1658
|
+
"_links": [
|
1659
|
+
{
|
1660
|
+
"href": "http://localhost:3000/api/user",
|
1661
|
+
"rel": "self",
|
1662
|
+
"method": "GET"
|
1663
|
+
}
|
1664
|
+
],
|
1665
|
+
"token": "413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03"
|
1666
|
+
}
|
1667
|
+
http_version:
|
1668
|
+
recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
|
1669
|
+
- request:
|
1670
|
+
method: post
|
1671
|
+
uri: http://localhost:3000/api/surveys
|
1672
|
+
body:
|
1673
|
+
encoding: UTF-8
|
1674
|
+
string: "{}"
|
1675
|
+
headers:
|
1676
|
+
User-Agent:
|
1677
|
+
- Faraday v0.9.0
|
1678
|
+
Content-Type:
|
1679
|
+
- application/json
|
1680
|
+
Api-Token:
|
1681
|
+
- testing
|
1682
|
+
User-Token:
|
1683
|
+
- 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
|
1684
|
+
Service-User-Id:
|
1685
|
+
- fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
|
1686
|
+
Accept-Encoding:
|
1687
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1688
|
+
Accept:
|
1689
|
+
- "*/*"
|
1690
|
+
response:
|
1691
|
+
status:
|
1692
|
+
code: 201
|
1693
|
+
message: 'Created '
|
1694
|
+
headers:
|
1695
|
+
X-Frame-Options:
|
1696
|
+
- SAMEORIGIN
|
1697
|
+
X-Xss-Protection:
|
1698
|
+
- 1; mode=block
|
1699
|
+
X-Content-Type-Options:
|
1700
|
+
- nosniff
|
1701
|
+
X-Ua-Compatible:
|
1702
|
+
- chrome=1
|
1703
|
+
Content-Type:
|
1704
|
+
- application/json; charset=utf-8
|
1705
|
+
Etag:
|
1706
|
+
- '"29ef0f95394b1918ae0364c635881f38"'
|
1707
|
+
Cache-Control:
|
1708
|
+
- max-age=0, private, must-revalidate
|
1709
|
+
X-Request-Id:
|
1710
|
+
- 49b551af-251f-4806-b72b-e22e5416685a
|
1711
|
+
X-Runtime:
|
1712
|
+
- '0.013060'
|
1713
|
+
Server:
|
1714
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1715
|
+
Date:
|
1716
|
+
- Sun, 25 Jan 2015 13:55:25 GMT
|
1717
|
+
Content-Length:
|
1718
|
+
- '422'
|
1719
|
+
Connection:
|
1720
|
+
- Keep-Alive
|
1721
|
+
body:
|
1722
|
+
encoding: UTF-8
|
1723
|
+
string: |-
|
1724
|
+
{
|
1725
|
+
"id": 84,
|
1726
|
+
"service_user_id": "fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac",
|
1727
|
+
"_links": [
|
1728
|
+
{
|
1729
|
+
"href": "http://localhost:3000/api/surveys/84",
|
1730
|
+
"rel": "self",
|
1731
|
+
"method": "GET"
|
1732
|
+
},
|
1733
|
+
{
|
1734
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions",
|
1735
|
+
"rel": "survey-questions",
|
1736
|
+
"method": "POST"
|
1737
|
+
}
|
1738
|
+
],
|
1739
|
+
"completed": true,
|
1740
|
+
"survey_questions": [
|
1741
|
+
|
1742
|
+
]
|
1743
|
+
}
|
1744
|
+
http_version:
|
1745
|
+
recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
|
1746
|
+
- request:
|
1747
|
+
method: post
|
1748
|
+
uri: http://localhost:3000/api/surveys/84/survey_questions
|
1749
|
+
body:
|
1750
|
+
encoding: UTF-8
|
1751
|
+
string: '{"survey_question":{"question_id":84,"responses":null}}'
|
1752
|
+
headers:
|
1753
|
+
User-Agent:
|
1754
|
+
- Faraday v0.9.0
|
1755
|
+
Content-Type:
|
1756
|
+
- application/json
|
1757
|
+
Api-Token:
|
1758
|
+
- testing
|
1759
|
+
User-Token:
|
1760
|
+
- 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
|
1761
|
+
Service-User-Id:
|
1762
|
+
- fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
|
1763
|
+
Accept-Encoding:
|
1764
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1765
|
+
Accept:
|
1766
|
+
- "*/*"
|
1767
|
+
response:
|
1768
|
+
status:
|
1769
|
+
code: 201
|
1770
|
+
message: 'Created '
|
1771
|
+
headers:
|
1772
|
+
X-Frame-Options:
|
1773
|
+
- SAMEORIGIN
|
1774
|
+
X-Xss-Protection:
|
1775
|
+
- 1; mode=block
|
1776
|
+
X-Content-Type-Options:
|
1777
|
+
- nosniff
|
1778
|
+
X-Ua-Compatible:
|
1779
|
+
- chrome=1
|
1780
|
+
Content-Type:
|
1781
|
+
- application/json; charset=utf-8
|
1782
|
+
Etag:
|
1783
|
+
- '"a83ec460f605d0594f46bfacf80cd527"'
|
1784
|
+
Cache-Control:
|
1785
|
+
- max-age=0, private, must-revalidate
|
1786
|
+
X-Request-Id:
|
1787
|
+
- 74e836f5-697e-406f-948b-d0a69008a924
|
1788
|
+
X-Runtime:
|
1789
|
+
- '0.026572'
|
1790
|
+
Server:
|
1791
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1792
|
+
Date:
|
1793
|
+
- Sun, 25 Jan 2015 13:55:25 GMT
|
1794
|
+
Content-Length:
|
1795
|
+
- '606'
|
1796
|
+
Connection:
|
1797
|
+
- Keep-Alive
|
1798
|
+
body:
|
1799
|
+
encoding: UTF-8
|
1800
|
+
string: |-
|
1801
|
+
{
|
1802
|
+
"id": 37,
|
1803
|
+
"text": "Do you like poptarts?",
|
1804
|
+
"question_type": "boolean",
|
1805
|
+
"responses": [
|
1806
|
+
"t",
|
1807
|
+
"f"
|
1808
|
+
],
|
1809
|
+
"answer": null,
|
1810
|
+
"_links": [
|
1811
|
+
{
|
1812
|
+
"rel": "self",
|
1813
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions/37",
|
1814
|
+
"method": "GET"
|
1815
|
+
},
|
1816
|
+
{
|
1817
|
+
"rel": "self",
|
1818
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions/37",
|
1819
|
+
"method": "PUT"
|
1820
|
+
},
|
1821
|
+
{
|
1822
|
+
"rel": "survey",
|
1823
|
+
"href": "http://localhost:3000/api/surveys/84",
|
1824
|
+
"method": "GET"
|
1825
|
+
}
|
1826
|
+
],
|
1827
|
+
"created_at": "2015-01-25T13:55:25.986Z",
|
1828
|
+
"key": null,
|
1829
|
+
"question_id": 84
|
1830
|
+
}
|
1831
|
+
http_version:
|
1832
|
+
recorded_at: Sun, 25 Jan 2015 13:55:25 GMT
|
1833
|
+
- request:
|
1834
|
+
method: get
|
1835
|
+
uri: http://localhost:3000/api/surveys/84
|
1836
|
+
body:
|
1837
|
+
encoding: US-ASCII
|
1838
|
+
string: ''
|
1839
|
+
headers:
|
1840
|
+
User-Agent:
|
1841
|
+
- Faraday v0.9.0
|
1842
|
+
Content-Type:
|
1843
|
+
- application/json
|
1844
|
+
Api-Token:
|
1845
|
+
- testing
|
1846
|
+
User-Token:
|
1847
|
+
- 413d6000436c3e27e65cb73d3f626cebdb229537d971c785a931233871e5ec03
|
1848
|
+
Service-User-Id:
|
1849
|
+
- fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac
|
1850
|
+
Accept-Encoding:
|
1851
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1852
|
+
Accept:
|
1853
|
+
- "*/*"
|
1854
|
+
response:
|
1855
|
+
status:
|
1856
|
+
code: 200
|
1857
|
+
message: 'OK '
|
1858
|
+
headers:
|
1859
|
+
X-Frame-Options:
|
1860
|
+
- SAMEORIGIN
|
1861
|
+
X-Xss-Protection:
|
1862
|
+
- 1; mode=block
|
1863
|
+
X-Content-Type-Options:
|
1864
|
+
- nosniff
|
1865
|
+
X-Ua-Compatible:
|
1866
|
+
- chrome=1
|
1867
|
+
Content-Type:
|
1868
|
+
- application/json; charset=utf-8
|
1869
|
+
Etag:
|
1870
|
+
- '"d2b77a4612e7b5c6ca6310d3fd7e17c5"'
|
1871
|
+
Cache-Control:
|
1872
|
+
- max-age=0, private, must-revalidate
|
1873
|
+
X-Request-Id:
|
1874
|
+
- f1b48108-d428-4ea3-bdeb-e082f4d15fc6
|
1875
|
+
X-Runtime:
|
1876
|
+
- '0.016812'
|
1877
|
+
Server:
|
1878
|
+
- WEBrick/1.3.1 (Ruby/2.1.3/2014-09-19)
|
1879
|
+
Date:
|
1880
|
+
- Sun, 25 Jan 2015 13:55:26 GMT
|
1881
|
+
Content-Length:
|
1882
|
+
- '1149'
|
1883
|
+
Connection:
|
1884
|
+
- Keep-Alive
|
1885
|
+
body:
|
1886
|
+
encoding: UTF-8
|
1887
|
+
string: |-
|
1888
|
+
{
|
1889
|
+
"id": 84,
|
1890
|
+
"service_user_id": "fc63f60d2d02dfe73d0e1aeb51088751d05c8d5f55c07530dad12fe057c825ac",
|
1891
|
+
"_links": [
|
1892
|
+
{
|
1893
|
+
"href": "http://localhost:3000/api/surveys/84",
|
1894
|
+
"rel": "self",
|
1895
|
+
"method": "GET"
|
1896
|
+
},
|
1897
|
+
{
|
1898
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions",
|
1899
|
+
"rel": "survey-questions",
|
1900
|
+
"method": "POST"
|
1901
|
+
}
|
1902
|
+
],
|
1903
|
+
"completed": false,
|
1904
|
+
"survey_questions": [
|
1905
|
+
{
|
1906
|
+
"id": 37,
|
1907
|
+
"text": "Do you like poptarts?",
|
1908
|
+
"question_type": "boolean",
|
1909
|
+
"responses": [
|
1910
|
+
"t",
|
1911
|
+
"f"
|
1912
|
+
],
|
1913
|
+
"answer": null,
|
1914
|
+
"_links": [
|
1915
|
+
{
|
1916
|
+
"rel": "self",
|
1917
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions/37",
|
1918
|
+
"method": "GET"
|
1919
|
+
},
|
1920
|
+
{
|
1921
|
+
"rel": "self",
|
1922
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions/37",
|
1923
|
+
"method": "PUT"
|
1924
|
+
},
|
1925
|
+
{
|
1926
|
+
"rel": "survey",
|
1927
|
+
"href": "http://localhost:3000/api/surveys/84",
|
1928
|
+
"method": "GET"
|
1929
|
+
}
|
1930
|
+
],
|
1931
|
+
"created_at": "2015-01-25T13:55:25.986Z",
|
1932
|
+
"key": null,
|
1933
|
+
"question_id": 84
|
1934
|
+
}
|
1935
|
+
]
|
1936
|
+
}
|
1937
|
+
http_version:
|
1938
|
+
recorded_at: Sun, 25 Jan 2015 13:55:26 GMT
|
1939
|
+
recorded_with: VCR 2.9.3
|