-
Notifications
You must be signed in to change notification settings - Fork 0
/
result.htm
304 lines (286 loc) · 33.4 KB
/
result.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px;
}
pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}
a { color: #000; }
a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; }
</style>
</head>
<body>
<h1>
ActiveRecord::RecordNotUnique
in ImagesController#create
</h1>
<pre>Mysql2::Error: Duplicate entry '12345-img001' for key 'images_book_image_unq': INSERT INTO `images` (`book_id`, `image_id`, `isbn`, `page_number`, `sequence_number`, `caption`, `url`, `library_id`, `created_at`, `updated_at`, `id`) VALUES (12345, 'img001', NULL, NULL, NULL, NULL, NULL, 29274, '2011-03-08 00:45:27', '2011-03-08 00:45:27', 433808784)</pre>
<p><code>Rails.root: /Users/roms/DiagramRailsApp</code></p>
<div id="traces">
<a href="#" onclick="document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';; return false;">Application Trace</a> |
<a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';; return false;">Framework Trace</a> |
<a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';; return false;">Full Trace</a>
<div id="Application-Trace" style="display: block;">
<pre><code>app/controllers/images_controller.rb:14:in `block in create'
app/controllers/images_controller.rb:13:in `create'</code></pre>
</div>
<div id="Framework-Trace" style="display: none;">
<pre><code>activerecord (3.0.4) lib/active_record/connection_adapters/abstract_adapter.rb:207:in `rescue in log'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract_adapter.rb:199:in `log'
mysql2 (0.2.6) lib/active_record/connection_adapters/mysql2_adapter.rb:314:in `execute'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:278:in `insert_sql'
mysql2 (0.2.6) lib/active_record/connection_adapters/mysql2_adapter.rb:325:in `insert_sql'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:44:in `insert'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/query_cache.rb:16:in `insert'
arel (2.0.9) lib/arel/select_manager.rb:217:in `insert'
activerecord (3.0.4) lib/active_record/relation.rb:14:in `insert'
activerecord (3.0.4) lib/active_record/persistence.rb:270:in `create'
activerecord (3.0.4) lib/active_record/timestamp.rb:47:in `create'
activerecord (3.0.4) lib/active_record/callbacks.rb:281:in `block in create'
activesupport (3.0.4) lib/active_support/callbacks.rb:413:in `_run_create_callbacks'
activerecord (3.0.4) lib/active_record/callbacks.rb:281:in `create'
activerecord (3.0.4) lib/active_record/persistence.rb:246:in `create_or_update'
activerecord (3.0.4) lib/active_record/callbacks.rb:277:in `block in create_or_update'
activesupport (3.0.4) lib/active_support/callbacks.rb:423:in `_run_save_callbacks'
activerecord (3.0.4) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.4) lib/active_record/persistence.rb:39:in `save'
activerecord (3.0.4) lib/active_record/validations.rb:43:in `save'
activerecord (3.0.4) lib/active_record/attribute_methods/dirty.rb:21:in `save'
activerecord (3.0.4) lib/active_record/transactions.rb:240:in `block (2 levels) in save'
activerecord (3.0.4) lib/active_record/transactions.rb:292:in `block in with_transaction_returning_status'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'
activerecord (3.0.4) lib/active_record/transactions.rb:207:in `transaction'
activerecord (3.0.4) lib/active_record/transactions.rb:290:in `with_transaction_returning_status'
activerecord (3.0.4) lib/active_record/transactions.rb:240:in `block in save'
activerecord (3.0.4) lib/active_record/transactions.rb:251:in `rollback_active_record_state!'
activerecord (3.0.4) lib/active_record/transactions.rb:239:in `save'
actionpack (3.0.4) lib/action_controller/metal/mime_responds.rb:264:in `call'
actionpack (3.0.4) lib/action_controller/metal/mime_responds.rb:264:in `retrieve_response_from_mimes'
actionpack (3.0.4) lib/action_controller/metal/mime_responds.rb:191:in `respond_to'
actionpack (3.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.4) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.0.4) lib/active_support/callbacks.rb:435:in `_run__3541552298119609480__process_action__3359736835116358094__callbacks'
activesupport (3.0.4) lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'
activesupport (3.0.4) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.0.4) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.4) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.4) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.4) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.4) lib/abstract_controller/rendering.rb:41:in `process'
actionpack (3.0.4) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.4) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.4) lib/action_controller/metal.rb:178:in `block in action'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:in `block in call'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in `block in recognize'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:75:in `optimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in `recognize'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:492:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.1) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/cookies.rb:302:in `call'
activerecord (3.0.4) lib/active_record/query_cache.rb:32:in `block in call'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
activerecord (3.0.4) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.4) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
activesupport (3.0.4) lib/active_support/callbacks.rb:415:in `_run_call_callbacks'
actionpack (3.0.4) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.0.4) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.4) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.4) lib/rails/application.rb:168:in `call'
railties (3.0.4) lib/rails/application.rb:77:in `method_missing'
railties (3.0.4) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.1) lib/rack/content_length.rb:13:in `call'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in `service'
/Users/roms/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/roms/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/roms/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'</code></pre>
</div>
<div id="Full-Trace" style="display: none;">
<pre><code>activerecord (3.0.4) lib/active_record/connection_adapters/abstract_adapter.rb:207:in `rescue in log'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract_adapter.rb:199:in `log'
mysql2 (0.2.6) lib/active_record/connection_adapters/mysql2_adapter.rb:314:in `execute'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:278:in `insert_sql'
mysql2 (0.2.6) lib/active_record/connection_adapters/mysql2_adapter.rb:325:in `insert_sql'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:44:in `insert'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/query_cache.rb:16:in `insert'
arel (2.0.9) lib/arel/select_manager.rb:217:in `insert'
activerecord (3.0.4) lib/active_record/relation.rb:14:in `insert'
activerecord (3.0.4) lib/active_record/persistence.rb:270:in `create'
activerecord (3.0.4) lib/active_record/timestamp.rb:47:in `create'
activerecord (3.0.4) lib/active_record/callbacks.rb:281:in `block in create'
activesupport (3.0.4) lib/active_support/callbacks.rb:413:in `_run_create_callbacks'
activerecord (3.0.4) lib/active_record/callbacks.rb:281:in `create'
activerecord (3.0.4) lib/active_record/persistence.rb:246:in `create_or_update'
activerecord (3.0.4) lib/active_record/callbacks.rb:277:in `block in create_or_update'
activesupport (3.0.4) lib/active_support/callbacks.rb:423:in `_run_save_callbacks'
activerecord (3.0.4) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.4) lib/active_record/persistence.rb:39:in `save'
activerecord (3.0.4) lib/active_record/validations.rb:43:in `save'
activerecord (3.0.4) lib/active_record/attribute_methods/dirty.rb:21:in `save'
activerecord (3.0.4) lib/active_record/transactions.rb:240:in `block (2 levels) in save'
activerecord (3.0.4) lib/active_record/transactions.rb:292:in `block in with_transaction_returning_status'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'
activerecord (3.0.4) lib/active_record/transactions.rb:207:in `transaction'
activerecord (3.0.4) lib/active_record/transactions.rb:290:in `with_transaction_returning_status'
activerecord (3.0.4) lib/active_record/transactions.rb:240:in `block in save'
activerecord (3.0.4) lib/active_record/transactions.rb:251:in `rollback_active_record_state!'
activerecord (3.0.4) lib/active_record/transactions.rb:239:in `save'
app/controllers/images_controller.rb:14:in `block in create'
actionpack (3.0.4) lib/action_controller/metal/mime_responds.rb:264:in `call'
actionpack (3.0.4) lib/action_controller/metal/mime_responds.rb:264:in `retrieve_response_from_mimes'
actionpack (3.0.4) lib/action_controller/metal/mime_responds.rb:191:in `respond_to'
app/controllers/images_controller.rb:13:in `create'
actionpack (3.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.4) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.0.4) lib/active_support/callbacks.rb:435:in `_run__3541552298119609480__process_action__3359736835116358094__callbacks'
activesupport (3.0.4) lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'
activesupport (3.0.4) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.0.4) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.4) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.4) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.4) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.4) lib/abstract_controller/rendering.rb:41:in `process'
actionpack (3.0.4) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.4) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.4) lib/action_controller/metal.rb:178:in `block in action'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:in `block in call'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in `block in recognize'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:75:in `optimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in `recognize'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.4) lib/action_dispatch/routing/route_set.rb:492:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.1) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/cookies.rb:302:in `call'
activerecord (3.0.4) lib/active_record/query_cache.rb:32:in `block in call'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
activerecord (3.0.4) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.4) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
activesupport (3.0.4) lib/active_support/callbacks.rb:415:in `_run_call_callbacks'
actionpack (3.0.4) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.0.4) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.4) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
actionpack (3.0.4) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.4) lib/rails/application.rb:168:in `call'
railties (3.0.4) lib/rails/application.rb:77:in `method_missing'
railties (3.0.4) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.1) lib/rack/content_length.rb:13:in `call'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in `service'
/Users/roms/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/roms/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/roms/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'</code></pre>
</div>
</div>
<h2 style="margin-top: 30px">Request</h2>
<p><b>Parameters</b>: <pre>{"image"=>{"library_id"=>"29274",
"book_id"=>"12345",
"image_id"=>"img001"},
"format"=>"xml"}</pre></p>
<p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
<div id="session_dump" style="display:none"><pre></pre></div>
<p><a href="#" onclick="document.getElementById('env_dump').style.display='block'; return false;">Show env dump</a></p>
<div id="env_dump" style="display:none"><pre>CONTENT_LENGTH: "67"
CONTENT_TYPE: "application/x-www-form-urlencoded"
GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "*/*"
HTTP_HOST: "localhost:3000"
HTTP_USER_AGENT: "curl/7.21.1 (x86_64-apple-darwin10.4.0) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19"
HTTP_VERSION: "HTTP/1.1"
PATH_INFO: "/images.xml"
QUERY_STRING: ""
REMOTE_ADDR: "127.0.0.1"
REMOTE_HOST: "qa.db"
REQUEST_METHOD: "POST"
REQUEST_PATH: "/"
REQUEST_URI: "http://localhost:3000/images.xml"
SCRIPT_NAME: ""
SERVER_NAME: "localhost"
SERVER_PORT: "3000"
SERVER_PROTOCOL: "HTTP/1.1"
SERVER_SOFTWARE: "WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)"
action_controller.instance: #<ImagesController:0x000001008f0c40 @action_has_layout=true, @view_context_class=nil, @_headers={"Content-Type"=>"text/html"}, @_status=200, @_response=#<ActionDispatch::Response:0x000001008f03d0 @writer=#<Proc:0x000001008f0178@/Users/roms/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.4/lib/action_dispatch/http/response.rb:43 (lambda)>, @block=nil, @length=0, @header={}, @status=200, @body=[], @cookie=[], @sending_file=false, @blank=false, @cache_control={}, @etag=nil, @request=#<ActionDispatch::Request:0x000001008f03f8 @env={"CONTENT_LENGTH"=>"67", "CONTENT_TYPE"=>"application/x-www-form-urlencoded", "GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/images.xml", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"qa.db", "REQUEST_METHOD"=>"POST", "REQUEST_URI"=>"http://localhost:3000/images.xml", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3000", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)", "HTTP_USER_AGENT"=>"curl/7.21.1 (x86_64-apple-darwin10.4.0) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19", "HTTP_HOST"=>"localhost:3000", "HTTP_ACCEPT"=>"*/*", "rack.version"=>[1, 1], "rack.input"=>#<StringIO:0x00000100b4dbc8>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_PATH"=>"/", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"cd486b2b1f5f278334a0cc13eee3d81f09ffd8935eb339e9b8a3ef75cd68706c2aa2994d923632ee5295e11847ed8a20b1aea1c1a390296aa1e9b03176ee503e", "action_dispatch.remote_ip"=>127.0.0.1, "rack.session"=>{}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :id=>nil}, "action_dispatch.cookies"=>{}, "action_dispatch.request.unsigned_session_cookie"=>{"session_id"=>"69f199798c1e446094710792cab76ac0"}, "action_dispatch.request.content_type"=>application/x-www-form-urlencoded, "rack.request.form_input"=>#<StringIO:0x00000100b4dbc8>, "rack.request.form_hash"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}, "rack.request.form_vars"=>"image[library_id]=29274&image[book_id]=12345&image[image_id]=img001", "action_dispatch.request.path_parameters"=>{:action=>"create", :controller=>"images", :format=>"xml"}, "action_controller.instance"=>#<ImagesController:0x000001008f0c40 ...>, "action_dispatch.request.request_parameters"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}, "action_dispatch.request.formats"=>[application/xml], "action_dispatch.request.flash_hash"=>nil}, @fullpath="/images.xml", @request_method="POST", @filtered_parameters={"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}, @method="POST">>, @_request=#<ActionDispatch::Request:0x000001008f03f8 @env={"CONTENT_LENGTH"=>"67", "CONTENT_TYPE"=>"application/x-www-form-urlencoded", "GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/images.xml", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"qa.db", "REQUEST_METHOD"=>"POST", "REQUEST_URI"=>"http://localhost:3000/images.xml", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3000", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)", "HTTP_USER_AGENT"=>"curl/7.21.1 (x86_64-apple-darwin10.4.0) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19", "HTTP_HOST"=>"localhost:3000", "HTTP_ACCEPT"=>"*/*", "rack.version"=>[1, 1], "rack.input"=>#<StringIO:0x00000100b4dbc8>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_PATH"=>"/", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"cd486b2b1f5f278334a0cc13eee3d81f09ffd8935eb339e9b8a3ef75cd68706c2aa2994d923632ee5295e11847ed8a20b1aea1c1a390296aa1e9b03176ee503e", "action_dispatch.remote_ip"=>127.0.0.1, "rack.session"=>{}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :id=>nil}, "action_dispatch.cookies"=>{}, "action_dispatch.request.unsigned_session_cookie"=>{"session_id"=>"69f199798c1e446094710792cab76ac0"}, "action_dispatch.request.content_type"=>application/x-www-form-urlencoded, "rack.request.form_input"=>#<StringIO:0x00000100b4dbc8>, "rack.request.form_hash"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}, "rack.request.form_vars"=>"image[library_id]=29274&image[book_id]=12345&image[image_id]=img001", "action_dispatch.request.path_parameters"=>{:action=>"create", :controller=>"images", :format=>"xml"}, "action_controller.instance"=>#<ImagesController:0x000001008f0c40 ...>, "action_dispatch.request.request_parameters"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}, "action_dispatch.request.formats"=>[application/xml], "action_dispatch.request.flash_hash"=>nil}, @fullpath="/images.xml", @request_method="POST", @filtered_parameters={"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}, @method="POST">, @_env={"CONTENT_LENGTH"=>"67", "CONTENT_TYPE"=>"application/x-www-form-urlencoded", "GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/images.xml", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"qa.db", "REQUEST_METHOD"=>"POST", "REQUEST_URI"=>"http://localhost:3000/images.xml", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3000", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)", "HTTP_USER_AGENT"=>"curl/7.21.1 (x86_64-apple-darwin10.4.0) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19", "HTTP_HOST"=>"localhost:3000", "HTTP_ACCEPT"=>"*/*", "rack.version"=>[1, 1], "rack.input"=>#<StringIO:0x00000100b4dbc8>, "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>false, "rack.multiprocess"=>false, "rack.run_once"=>false, "rack.url_scheme"=>"http", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_PATH"=>"/", "action_dispatch.parameter_filter"=>[:password], "action_dispatch.secret_token"=>"cd486b2b1f5f278334a0cc13eee3d81f09ffd8935eb339e9b8a3ef75cd68706c2aa2994d923632ee5295e11847ed8a20b1aea1c1a390296aa1e9b03176ee503e", "action_dispatch.remote_ip"=>127.0.0.1, "rack.session"=>{}, "rack.session.options"=>{:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :id=>nil}, "action_dispatch.cookies"=>{}, "action_dispatch.request.unsigned_session_cookie"=>{"session_id"=>"69f199798c1e446094710792cab76ac0"}, "action_dispatch.request.content_type"=>application/x-www-form-urlencoded, "rack.request.form_input"=>#<StringIO:0x00000100b4dbc8>, "rack.request.form_hash"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}, "rack.request.form_vars"=>"image[library_id]=29274&image[book_id]=12345&image[image_id]=img001", "action_dispatch.request.path_parameters"=>{:action=>"create", :controller=>"images", :format=>"xml"}, "action_controller.instance"=>#<ImagesController:0x000001008f0c40 ...>, "action_dispatch.request.request_parameters"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}, "action_dispatch.request.formats"=>[application/xml], "action_dispatch.request.flash_hash"=>nil}, @lookup_context=#<ActionView::LookupContext:0x000001008ed720 @details_key=nil, @details={:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:xml], :locale=>[:en, :en]}, @skip_default_locale=false, @frozen_formats=false, @view_paths=[/Users/roms/DiagramRailsApp/app/views]>, @_action_name="create", @_response_body=nil, @_config={}, @_params={"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}, @library=#<Library id: 29274, name: "wahoo", created_at: "2011-03-07 17:11:31", updated_at: "2011-03-07 17:11:31">, @image=#<Image id: 433808784, book_id: 12345, image_id: "img001", isbn: nil, page_number: nil, sequence_number: nil, caption: nil, url: nil, library_id: 29274, created_at: "2011-03-08 00:45:27", updated_at: "2011-03-08 00:45:27">>
action_dispatch.cookies: {}
action_dispatch.parameter_filter: [:password]
action_dispatch.remote_ip: 127.0.0.1
action_dispatch.request.content_type: application/x-www-form-urlencoded
action_dispatch.request.flash_hash: nil
action_dispatch.request.formats: [application/xml]
action_dispatch.request.parameters: {"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}, "action"=>"create", "controller"=>"images", "format"=>"xml"}
action_dispatch.request.path_parameters: {:action=>"create", :controller=>"images", :format=>"xml"}
action_dispatch.request.query_parameters: {}
action_dispatch.request.request_parameters: {"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}
action_dispatch.request.unsigned_session_cookie: {"session_id"=>"69f199798c1e446094710792cab76ac0"}
action_dispatch.secret_token: "cd486b2b1f5f278334a0cc13eee3d81f09ffd8935eb339e9b8a3ef75cd68706c2aa2994d923632ee5295e11847ed8a20b1aea1c1a390296aa1e9b03176ee503e"
rack.errors: #<IO:<STDERR>>
rack.input: #<StringIO:0x00000100b4dbc8>
rack.multiprocess: false
rack.multithread: false
rack.request.form_hash: {"image"=>{"library_id"=>"29274", "book_id"=>"12345", "image_id"=>"img001"}}
rack.request.form_input: #<StringIO:0x00000100b4dbc8>
rack.request.form_vars: "image[library_id]=29274&image[book_id]=12345&image[image_id]=img001"
rack.request.query_hash: {}
rack.request.query_string: ""
rack.run_once: false
rack.session: {}
rack.session.options: {:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :id=>nil}
rack.url_scheme: "http"
rack.version: [1, 1]</pre></div>
<h2 style="margin-top: 30px">Response</h2>
<p><b>Headers</b>: <pre>None</pre></p>
</body>
</html>