board-client 0.3.0 → 0.99.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/.gitignore +4 -0
  2. data/.rspec +1 -0
  3. data/.rvmrc +47 -0
  4. data/Gemfile +1 -7
  5. data/README.md +63 -17
  6. data/Rakefile +4 -44
  7. data/board-client.gemspec +22 -66
  8. data/lib/board/client.rb +41 -22
  9. data/lib/board/client/api.rb +29 -0
  10. data/lib/board/client/candidates.rb +13 -0
  11. data/lib/board/client/organizations.rb +17 -0
  12. data/lib/board/client/request.rb +98 -0
  13. data/lib/board/client/user_organizations.rb +20 -0
  14. data/lib/board/client/users.rb +21 -0
  15. data/lib/board/client/version.rb +5 -0
  16. data/spec/board/client_spec.rb +27 -83
  17. data/spec/cassettes/candidate_exists_with_id.yml +30 -0
  18. data/spec/cassettes/candidate_id_does_not_exist.yml +336 -0
  19. data/spec/cassettes/candidate_invite_email_exists.yml +30 -0
  20. data/spec/cassettes/candidate_invite_when_invalid.yml +30 -0
  21. data/spec/cassettes/candidate_invite_when_valid.yml +32 -0
  22. data/spec/cassettes/list_user_organizations_with_invalid_id.yml +346 -0
  23. data/spec/cassettes/list_user_organizations_with_valid_id.yml +30 -0
  24. data/spec/cassettes/organization_add_user.yml +26 -0
  25. data/spec/cassettes/organization_add_user_-_organization_does_not_exist.yml +356 -0
  26. data/spec/cassettes/organization_add_user_-_user_does_not_exist.yml +348 -0
  27. data/spec/cassettes/organization_create_is_invalid.yml +30 -0
  28. data/spec/cassettes/organization_create_is_valid.yml +32 -0
  29. data/spec/cassettes/organization_exists_with_email.yml +30 -0
  30. data/spec/cassettes/organization_exists_with_id.yml +30 -0
  31. data/spec/cassettes/organization_id_does_not_exist.yml +354 -0
  32. data/spec/cassettes/organization_name_does_not_exist.yml +334 -0
  33. data/spec/cassettes/unsubscribe_email_does_not_exist.yml +340 -0
  34. data/spec/cassettes/unsubscribe_email_exists.yml +30 -0
  35. data/spec/cassettes/user_does_exist.yml +30 -0
  36. data/spec/cassettes/user_does_not_exist.yml +32 -0
  37. data/spec/cassettes/user_email_does_not_exist.yml +334 -0
  38. data/spec/cassettes/user_email_md5_does_not_exist.yml +334 -0
  39. data/spec/cassettes/user_exists_with_email.yml +30 -0
  40. data/spec/cassettes/user_exists_with_email_md5.yml +30 -0
  41. data/spec/cassettes/user_exists_with_id.yml +30 -0
  42. data/spec/cassettes/user_id_does_not_exist.yml +346 -0
  43. data/spec/cassettes/user_missing_attributes.yml +30 -0
  44. data/spec/integration/candidates/find_spec.rb +28 -0
  45. data/spec/integration/candidates/invite_spec.rb +48 -0
  46. data/spec/integration/organizations/add_user_spec.rb +34 -0
  47. data/spec/integration/organizations/create_spec.rb +38 -0
  48. data/spec/integration/organizations/find_spec.rb +50 -0
  49. data/spec/integration/users/create_spec.rb +54 -0
  50. data/spec/integration/users/find_spec.rb +73 -0
  51. data/spec/integration/users/list_organizations_spec.rb +36 -0
  52. data/spec/integration/users/unsubscribe_spec.rb +27 -0
  53. data/spec/spec_helper.rb +6 -5
  54. data/spec/support/integration_helpers.rb +17 -0
  55. data/spec/support/vcr.rb +11 -0
  56. metadata +144 -52
  57. data/Gemfile.lock +0 -22
  58. data/lib/board/candidate_search.rb +0 -45
  59. data/lib/board/request.rb +0 -78
  60. data/spec/board/candidate_search_spec.rb +0 -45
  61. data/spec/spec.opts +0 -1
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://localhost:3000/api/v1/users
6
+ body: user_credentials=Bdrc3t1LaiWtygbJ4jD6&email=candidate%40recruitmilitary.com
7
+ headers:
8
+ content-type:
9
+ - application/x-www-form-urlencoded
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ x-ua-compatible:
16
+ - IE=Edge
17
+ etag:
18
+ - "\"6968d4fa87d33c6b92252460a9a53189\""
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ date:
22
+ - Mon, 29 Aug 2011 18:19:08 GMT
23
+ x-runtime:
24
+ - "0.924592"
25
+ cache-control:
26
+ - max-age=0, private, must-revalidate
27
+ transfer-encoding:
28
+ - chunked
29
+ body: "{\"unsubscribed_at\":null,\"single_access_token\":null,\"last_request_at\":null,\"hidden_at\":null,\"created_at\":\"2011-08-29T18:18:19Z\",\"agreement_acknowledged_at\":null,\"searchable\":true,\"crypted_password\":\"a6c89ee2f9aa412837a309c68823e0a5cd70e10f26bc79e39d538c98ba6a5daabd321dd30e2e035b16fcc5cc2139eae0e60d4bd747591388563df3f1d698c809\",\"updated_at\":\"2011-08-29T18:18:19Z\",\"secret_id\":null,\"perishable_token\":\"PzmYP1k6paCm8wLwFxOY\",\"agreement_initials\":null,\"id\":100,\"email_md5\":\"7618e7a4937b37640c24149bdf21cf27\",\"current_login_ip\":null,\"password_salt\":\"_Ef2Xm-HVbCJKk_zWmpd\",\"email_invalid_at\":null,\"current_login_at\":null,\"primary_role_id\":1,\"phone\":null,\"persistence_token\":\"79d380dcfd65e6909a693619ff41e1b34fab361d23002685c51208bddf4585066ff4395ffb0169c89fb2737e5b0166de3e6043d47f139c0536fb2a56de88e86e\",\"login_count\":78,\"last_name\":\"Reichel\",\"last_login_ip\":null,\"last_login_at\":\"2011-08-16T18:18:19Z\",\"first_name\":\"Raina\",\"email\":\"candidate@recruitmilitary.com\",\"confirmed_at\":\"2011-08-27T18:18:19Z\"}"
30
+ http_version: "1.1"
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://localhost:3000/api/v1/users
6
+ body: user_credentials=Bdrc3t1LaiWtygbJ4jD6&email_md5=3e67fa7c8045d085e66a51deee26cbc4
7
+ headers:
8
+ content-type:
9
+ - application/x-www-form-urlencoded
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ x-ua-compatible:
16
+ - IE=Edge
17
+ etag:
18
+ - "\"d301dd5240a5d567aee9288914c0a879\""
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ date:
22
+ - Mon, 29 Aug 2011 18:19:09 GMT
23
+ x-runtime:
24
+ - "0.770470"
25
+ cache-control:
26
+ - max-age=0, private, must-revalidate
27
+ transfer-encoding:
28
+ - chunked
29
+ body: "{\"unsubscribed_at\":null,\"single_access_token\":\"Bdrc3t1LaiWtygbJ4jD6\",\"last_request_at\":\"2011-08-29T18:19:10Z\",\"hidden_at\":null,\"created_at\":\"2011-08-29T18:18:18Z\",\"agreement_acknowledged_at\":null,\"searchable\":false,\"crypted_password\":\"0c2e2255b213959ab77da74dd2a427681990dafefb999048f4fcc5246fd8655216b5ea8dec50d36f47560562d341c0b2fd5df84a1b951be5d9d75fffb07e4974\",\"updated_at\":\"2011-08-29T18:19:10Z\",\"secret_id\":\"8997cf28a075ac67ac4372eda8fefc39\",\"perishable_token\":\"amvA9462LymZ0BKNkyGY\",\"agreement_initials\":null,\"id\":1,\"email_md5\":\"3e67fa7c8045d085e66a51deee26cbc4\",\"current_login_ip\":null,\"password_salt\":\"BUuHfUgauBblH5J5aghi\",\"email_invalid_at\":null,\"current_login_at\":null,\"primary_role_id\":3,\"phone\":null,\"persistence_token\":\"ea6022d6e567f73727b2e80a0cae54b97c21031ee8232fa91622553f537ef765a47a8262fc1f1fb3ee15ed7b7d464a745bf93b09ae9bd1832404fa9acd222a5c\",\"login_count\":0,\"last_name\":\"McStafforson\",\"last_login_ip\":null,\"last_login_at\":null,\"first_name\":\"Staff\",\"email\":\"staff@recruitmilitary.com\",\"confirmed_at\":\"2011-08-29T18:18:18Z\"}"
30
+ http_version: "1.1"
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://localhost:3000/api/v1/users/1
6
+ body: user_credentials=Bdrc3t1LaiWtygbJ4jD6
7
+ headers:
8
+ content-type:
9
+ - application/x-www-form-urlencoded
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ x-ua-compatible:
16
+ - IE=Edge
17
+ etag:
18
+ - "\"734cdf126356d9c19264d3c61ea0ce7b\""
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ date:
22
+ - Mon, 29 Aug 2011 18:19:07 GMT
23
+ x-runtime:
24
+ - "0.769667"
25
+ cache-control:
26
+ - max-age=0, private, must-revalidate
27
+ transfer-encoding:
28
+ - chunked
29
+ body: "{\"unsubscribed_at\":null,\"single_access_token\":\"Bdrc3t1LaiWtygbJ4jD6\",\"last_request_at\":\"2011-08-29T18:19:07Z\",\"hidden_at\":null,\"created_at\":\"2011-08-29T18:18:18Z\",\"agreement_acknowledged_at\":null,\"searchable\":false,\"crypted_password\":\"0c2e2255b213959ab77da74dd2a427681990dafefb999048f4fcc5246fd8655216b5ea8dec50d36f47560562d341c0b2fd5df84a1b951be5d9d75fffb07e4974\",\"updated_at\":\"2011-08-29T18:19:07Z\",\"secret_id\":\"8997cf28a075ac67ac4372eda8fefc39\",\"perishable_token\":\"6EE8U5OWyuDiqAsmNnUE\",\"agreement_initials\":null,\"id\":1,\"email_md5\":\"3e67fa7c8045d085e66a51deee26cbc4\",\"current_login_ip\":null,\"password_salt\":\"BUuHfUgauBblH5J5aghi\",\"email_invalid_at\":null,\"current_login_at\":null,\"primary_role_id\":3,\"phone\":null,\"persistence_token\":\"ea6022d6e567f73727b2e80a0cae54b97c21031ee8232fa91622553f537ef765a47a8262fc1f1fb3ee15ed7b7d464a745bf93b09ae9bd1832404fa9acd222a5c\",\"login_count\":0,\"last_name\":\"McStafforson\",\"last_login_ip\":null,\"last_login_at\":null,\"first_name\":\"Staff\",\"email\":\"staff@recruitmilitary.com\",\"confirmed_at\":\"2011-08-29T18:18:18Z\"}"
30
+ http_version: "1.1"
@@ -0,0 +1,346 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://localhost:3000/api/v1/users/42
6
+ body: user_credentials=Bdrc3t1LaiWtygbJ4jD6
7
+ headers:
8
+ content-type:
9
+ - application/x-www-form-urlencoded
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 404
13
+ message: Not Found
14
+ headers:
15
+ content-type:
16
+ - text/html
17
+ date:
18
+ - Mon, 29 Aug 2011 18:19:08 GMT
19
+ x-runtime:
20
+ - "0.379787"
21
+ content-length:
22
+ - "51776"
23
+ body: |
24
+ <html xmlns="http://www.w3.org/1999/xhtml">
25
+ <head>
26
+ <title>Action Controller: Exception caught</title>
27
+ <style>
28
+ body { background-color: #fff; color: #333; }
29
+
30
+ body, p, ol, ul, td {
31
+ font-family: verdana, arial, helvetica, sans-serif;
32
+ font-size: 13px;
33
+ line-height: 18px;
34
+ }
35
+
36
+ pre {
37
+ background-color: #eee;
38
+ padding: 10px;
39
+ font-size: 11px;
40
+ }
41
+
42
+ a { color: #000; }
43
+ a:visited { color: #666; }
44
+ a:hover { color: #fff; background-color:#000; }
45
+ </style>
46
+ </head>
47
+ <body>
48
+
49
+ <h1>
50
+ ActiveRecord::RecordNotFound
51
+ in Api::V1::UsersController#show
52
+ </h1>
53
+ <pre>Couldn't find User with ID=42</pre>
54
+
55
+
56
+ <p><code>Rails.root: /Users/michaelguterl/code/rm/board</code></p>
57
+
58
+ <div id="traces">
59
+ <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> |
60
+ <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> |
61
+ <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>
62
+
63
+ <div id="Application-Trace" style="display: block;">
64
+ <pre><code>app/controllers/api/v1/users_controller.rb:20:in `show'</code></pre>
65
+ </div>
66
+ <div id="Framework-Trace" style="display: none;">
67
+ <pre><code>activerecord (3.0.9) lib/active_record/relation/finder_methods.rb:304:in `find_one'
68
+ friendly_id (3.2.1) lib/friendly_id/active_record_adapter/relation.rb:148:in `find_one'
69
+ activerecord (3.0.9) lib/active_record/relation/finder_methods.rb:289:in `find_with_ids'
70
+ activerecord (3.0.9) lib/active_record/relation/finder_methods.rb:107:in `find'
71
+ activerecord (3.0.9) lib/active_record/base.rb:444:in `__send__'
72
+ activerecord (3.0.9) lib/active_record/base.rb:444:in `find'
73
+ actionpack (3.0.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
74
+ actionpack (3.0.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
75
+ actionpack (3.0.9) lib/abstract_controller/base.rb:150:in `process_action'
76
+ actionpack (3.0.9) lib/action_controller/metal/rendering.rb:11:in `process_action'
77
+ actionpack (3.0.9) lib/abstract_controller/callbacks.rb:18:in `process_action'
78
+ activesupport (3.0.9) lib/active_support/callbacks.rb:466:in `_run__1987623246__process_action__453433196__callbacks'
79
+ activesupport (3.0.9) lib/active_support/callbacks.rb:410:in `send'
80
+ activesupport (3.0.9) lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
81
+ activesupport (3.0.9) lib/active_support/callbacks.rb:94:in `send'
82
+ activesupport (3.0.9) lib/active_support/callbacks.rb:94:in `run_callbacks'
83
+ actionpack (3.0.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
84
+ actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
85
+ activesupport (3.0.9) lib/active_support/notifications.rb:52:in `instrument'
86
+ activesupport (3.0.9) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
87
+ activesupport (3.0.9) lib/active_support/notifications.rb:52:in `instrument'
88
+ actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
89
+ actionpack (3.0.9) lib/action_controller/metal/rescue.rb:17:in `process_action'
90
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `process_action'
91
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:253:in `perform_action_with_newrelic_trace'
92
+ newrelic_rpm (3.0.1) lib/new_relic/agent/method_tracer.rb:193:in `trace_execution_scoped'
93
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:248:in `perform_action_with_newrelic_trace'
94
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
95
+ actionpack (3.0.9) lib/abstract_controller/base.rb:119:in `process'
96
+ actionpack (3.0.9) lib/abstract_controller/rendering.rb:41:in `process'
97
+ actionpack (3.0.9) lib/action_controller/metal.rb:138:in `dispatch'
98
+ actionpack (3.0.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
99
+ actionpack (3.0.9) lib/action_controller/metal.rb:178:in `action'
100
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in `call'
101
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
102
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:27:in `call'
103
+ rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `call'
104
+ rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in `recognize'
105
+ rack-mount (0.6.14) lib/rack/mount/code_generation.rb:103:in `optimized_each'
106
+ rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in `recognize'
107
+ rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
108
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:493:in `call'
109
+ /Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/bundler/gems/oauth2-provider-465353dcca4f/lib/oauth2/provider/rack/middleware.rb:14:in `call'
110
+ /Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/bundler/gems/oauth2-provider-465353dcca4f/lib/oauth2/provider/rack/middleware.rb:10:in `catch'
111
+ /Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/bundler/gems/oauth2-provider-465353dcca4f/lib/oauth2/provider/rack/middleware.rb:10:in `call'
112
+ newrelic_rpm (3.0.1) lib/new_relic/rack/browser_monitoring.rb:18:in `call'
113
+ newrelic_rpm (3.0.1) lib/new_relic/rack/developer_mode.rb:24:in `call'
114
+ hoptoad_notifier (2.4.11) lib/hoptoad_notifier/rack.rb:27:in `call'
115
+ haml (3.0.25) lib/sass/plugin/rack.rb:41:in `call'
116
+ actionpack (3.0.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
117
+ actionpack (3.0.9) lib/action_dispatch/middleware/head.rb:14:in `call'
118
+ rack (1.2.3) lib/rack/methodoverride.rb:24:in `call'
119
+ actionpack (3.0.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
120
+ actionpack (3.0.9) lib/action_dispatch/middleware/flash.rb:182:in `call'
121
+ actionpack (3.0.9) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
122
+ actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:302:in `call'
123
+ activerecord (3.0.9) lib/active_record/query_cache.rb:32:in `call'
124
+ activerecord (3.0.9) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
125
+ activerecord (3.0.9) lib/active_record/query_cache.rb:12:in `cache'
126
+ activerecord (3.0.9) lib/active_record/query_cache.rb:31:in `call'
127
+ activerecord (3.0.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
128
+ actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:46:in `call'
129
+ activesupport (3.0.9) lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
130
+ actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
131
+ rack (1.2.3) lib/rack/sendfile.rb:107:in `call'
132
+ actionpack (3.0.9) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
133
+ actionpack (3.0.9) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
134
+ railties (3.0.9) lib/rails/rack/logger.rb:13:in `call'
135
+ rack (1.2.3) lib/rack/runtime.rb:17:in `call'
136
+ activesupport (3.0.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
137
+ rack (1.2.3) lib/rack/lock.rb:11:in `call'
138
+ rack (1.2.3) lib/rack/lock.rb:11:in `synchronize'
139
+ rack (1.2.3) lib/rack/lock.rb:11:in `call'
140
+ actionpack (3.0.9) lib/action_dispatch/middleware/static.rb:30:in `call'
141
+ hoptoad_notifier (2.4.11) lib/hoptoad_notifier/user_informer.rb:12:in `call'
142
+ railties (3.0.9) lib/rails/application.rb:168:in `call'
143
+ railties (3.0.9) lib/rails/application.rb:77:in `send'
144
+ railties (3.0.9) lib/rails/application.rb:77:in `method_missing'
145
+ rack (1.2.3) lib/rack/urlmap.rb:47:in `call'
146
+ rack (1.2.3) lib/rack/urlmap.rb:41:in `each'
147
+ rack (1.2.3) lib/rack/urlmap.rb:41:in `call'
148
+ railties (3.0.9) lib/rails/rack/log_tailer.rb:14:in `call'
149
+ rack (1.2.3) lib/rack/content_length.rb:13:in `call'
150
+ rack (1.2.3) lib/rack/chunked.rb:15:in `call'
151
+ rack (1.2.3) lib/rack/handler/mongrel.rb:67:in `process'
152
+ mongrel (1.1.5) lib/mongrel.rb:159:in `process_client'
153
+ mongrel (1.1.5) lib/mongrel.rb:158:in `each'
154
+ mongrel (1.1.5) lib/mongrel.rb:158:in `process_client'
155
+ mongrel (1.1.5) lib/mongrel.rb:285:in `run'
156
+ mongrel (1.1.5) lib/mongrel.rb:285:in `initialize'
157
+ mongrel (1.1.5) lib/mongrel.rb:285:in `new'
158
+ mongrel (1.1.5) lib/mongrel.rb:285:in `run'
159
+ mongrel (1.1.5) lib/mongrel.rb:268:in `initialize'
160
+ mongrel (1.1.5) lib/mongrel.rb:268:in `new'
161
+ mongrel (1.1.5) lib/mongrel.rb:268:in `run'
162
+ rack (1.2.3) lib/rack/handler/mongrel.rb:38:in `run'
163
+ rack (1.2.3) lib/rack/server.rb:217:in `start'
164
+ railties (3.0.9) lib/rails/commands/server.rb:65:in `start'
165
+ railties (3.0.9) lib/rails/commands.rb:30
166
+ railties (3.0.9) lib/rails/commands.rb:27:in `tap'
167
+ railties (3.0.9) lib/rails/commands.rb:27
168
+ script/rails:6:in `require'
169
+ script/rails:6</code></pre>
170
+ </div>
171
+ <div id="Full-Trace" style="display: none;">
172
+ <pre><code>activerecord (3.0.9) lib/active_record/relation/finder_methods.rb:304:in `find_one'
173
+ friendly_id (3.2.1) lib/friendly_id/active_record_adapter/relation.rb:148:in `find_one'
174
+ activerecord (3.0.9) lib/active_record/relation/finder_methods.rb:289:in `find_with_ids'
175
+ activerecord (3.0.9) lib/active_record/relation/finder_methods.rb:107:in `find'
176
+ activerecord (3.0.9) lib/active_record/base.rb:444:in `__send__'
177
+ activerecord (3.0.9) lib/active_record/base.rb:444:in `find'
178
+ app/controllers/api/v1/users_controller.rb:20:in `show'
179
+ actionpack (3.0.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
180
+ actionpack (3.0.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
181
+ actionpack (3.0.9) lib/abstract_controller/base.rb:150:in `process_action'
182
+ actionpack (3.0.9) lib/action_controller/metal/rendering.rb:11:in `process_action'
183
+ actionpack (3.0.9) lib/abstract_controller/callbacks.rb:18:in `process_action'
184
+ activesupport (3.0.9) lib/active_support/callbacks.rb:466:in `_run__1987623246__process_action__453433196__callbacks'
185
+ activesupport (3.0.9) lib/active_support/callbacks.rb:410:in `send'
186
+ activesupport (3.0.9) lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
187
+ activesupport (3.0.9) lib/active_support/callbacks.rb:94:in `send'
188
+ activesupport (3.0.9) lib/active_support/callbacks.rb:94:in `run_callbacks'
189
+ actionpack (3.0.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
190
+ actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
191
+ activesupport (3.0.9) lib/active_support/notifications.rb:52:in `instrument'
192
+ activesupport (3.0.9) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
193
+ activesupport (3.0.9) lib/active_support/notifications.rb:52:in `instrument'
194
+ actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
195
+ actionpack (3.0.9) lib/action_controller/metal/rescue.rb:17:in `process_action'
196
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `process_action'
197
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:253:in `perform_action_with_newrelic_trace'
198
+ newrelic_rpm (3.0.1) lib/new_relic/agent/method_tracer.rb:193:in `trace_execution_scoped'
199
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:248:in `perform_action_with_newrelic_trace'
200
+ newrelic_rpm (3.0.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
201
+ actionpack (3.0.9) lib/abstract_controller/base.rb:119:in `process'
202
+ actionpack (3.0.9) lib/abstract_controller/rendering.rb:41:in `process'
203
+ actionpack (3.0.9) lib/action_controller/metal.rb:138:in `dispatch'
204
+ actionpack (3.0.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
205
+ actionpack (3.0.9) lib/action_controller/metal.rb:178:in `action'
206
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in `call'
207
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
208
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:27:in `call'
209
+ rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `call'
210
+ rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in `recognize'
211
+ rack-mount (0.6.14) lib/rack/mount/code_generation.rb:103:in `optimized_each'
212
+ rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in `recognize'
213
+ rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
214
+ actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:493:in `call'
215
+ /Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/bundler/gems/oauth2-provider-465353dcca4f/lib/oauth2/provider/rack/middleware.rb:14:in `call'
216
+ /Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/bundler/gems/oauth2-provider-465353dcca4f/lib/oauth2/provider/rack/middleware.rb:10:in `catch'
217
+ /Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/bundler/gems/oauth2-provider-465353dcca4f/lib/oauth2/provider/rack/middleware.rb:10:in `call'
218
+ newrelic_rpm (3.0.1) lib/new_relic/rack/browser_monitoring.rb:18:in `call'
219
+ newrelic_rpm (3.0.1) lib/new_relic/rack/developer_mode.rb:24:in `call'
220
+ hoptoad_notifier (2.4.11) lib/hoptoad_notifier/rack.rb:27:in `call'
221
+ haml (3.0.25) lib/sass/plugin/rack.rb:41:in `call'
222
+ actionpack (3.0.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
223
+ actionpack (3.0.9) lib/action_dispatch/middleware/head.rb:14:in `call'
224
+ rack (1.2.3) lib/rack/methodoverride.rb:24:in `call'
225
+ actionpack (3.0.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
226
+ actionpack (3.0.9) lib/action_dispatch/middleware/flash.rb:182:in `call'
227
+ actionpack (3.0.9) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
228
+ actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:302:in `call'
229
+ activerecord (3.0.9) lib/active_record/query_cache.rb:32:in `call'
230
+ activerecord (3.0.9) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
231
+ activerecord (3.0.9) lib/active_record/query_cache.rb:12:in `cache'
232
+ activerecord (3.0.9) lib/active_record/query_cache.rb:31:in `call'
233
+ activerecord (3.0.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
234
+ actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:46:in `call'
235
+ activesupport (3.0.9) lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
236
+ actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
237
+ rack (1.2.3) lib/rack/sendfile.rb:107:in `call'
238
+ actionpack (3.0.9) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
239
+ actionpack (3.0.9) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
240
+ railties (3.0.9) lib/rails/rack/logger.rb:13:in `call'
241
+ rack (1.2.3) lib/rack/runtime.rb:17:in `call'
242
+ activesupport (3.0.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
243
+ rack (1.2.3) lib/rack/lock.rb:11:in `call'
244
+ rack (1.2.3) lib/rack/lock.rb:11:in `synchronize'
245
+ rack (1.2.3) lib/rack/lock.rb:11:in `call'
246
+ actionpack (3.0.9) lib/action_dispatch/middleware/static.rb:30:in `call'
247
+ hoptoad_notifier (2.4.11) lib/hoptoad_notifier/user_informer.rb:12:in `call'
248
+ railties (3.0.9) lib/rails/application.rb:168:in `call'
249
+ railties (3.0.9) lib/rails/application.rb:77:in `send'
250
+ railties (3.0.9) lib/rails/application.rb:77:in `method_missing'
251
+ rack (1.2.3) lib/rack/urlmap.rb:47:in `call'
252
+ rack (1.2.3) lib/rack/urlmap.rb:41:in `each'
253
+ rack (1.2.3) lib/rack/urlmap.rb:41:in `call'
254
+ railties (3.0.9) lib/rails/rack/log_tailer.rb:14:in `call'
255
+ rack (1.2.3) lib/rack/content_length.rb:13:in `call'
256
+ rack (1.2.3) lib/rack/chunked.rb:15:in `call'
257
+ rack (1.2.3) lib/rack/handler/mongrel.rb:67:in `process'
258
+ mongrel (1.1.5) lib/mongrel.rb:159:in `process_client'
259
+ mongrel (1.1.5) lib/mongrel.rb:158:in `each'
260
+ mongrel (1.1.5) lib/mongrel.rb:158:in `process_client'
261
+ mongrel (1.1.5) lib/mongrel.rb:285:in `run'
262
+ mongrel (1.1.5) lib/mongrel.rb:285:in `initialize'
263
+ mongrel (1.1.5) lib/mongrel.rb:285:in `new'
264
+ mongrel (1.1.5) lib/mongrel.rb:285:in `run'
265
+ mongrel (1.1.5) lib/mongrel.rb:268:in `initialize'
266
+ mongrel (1.1.5) lib/mongrel.rb:268:in `new'
267
+ mongrel (1.1.5) lib/mongrel.rb:268:in `run'
268
+ rack (1.2.3) lib/rack/handler/mongrel.rb:38:in `run'
269
+ rack (1.2.3) lib/rack/server.rb:217:in `start'
270
+ railties (3.0.9) lib/rails/commands/server.rb:65:in `start'
271
+ railties (3.0.9) lib/rails/commands.rb:30
272
+ railties (3.0.9) lib/rails/commands.rb:27:in `tap'
273
+ railties (3.0.9) lib/rails/commands.rb:27
274
+ script/rails:6:in `require'
275
+ script/rails:6</code></pre>
276
+ </div>
277
+ </div>
278
+
279
+
280
+
281
+ <h2 style="margin-top: 30px">Request</h2>
282
+ <p><b>Parameters</b>: <pre>{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;,
283
+ &quot;id&quot;=&gt;&quot;42&quot;}</pre></p>
284
+
285
+ <p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
286
+ <div id="session_dump" style="display:none"><pre></pre></div>
287
+
288
+ <p><a href="#" onclick="document.getElementById('env_dump').style.display='block'; return false;">Show env dump</a></p>
289
+ <div id="env_dump" style="display:none"><pre>CONTENT_LENGTH: &quot;37&quot;
290
+ CONTENT_TYPE: &quot;application/x-www-form-urlencoded&quot;
291
+ GATEWAY_INTERFACE: &quot;CGI/1.2&quot;
292
+ HTTP_ACCEPT: &quot;*/*&quot;
293
+ HTTP_HOST: &quot;localhost:3000&quot;
294
+ HTTP_VERSION: &quot;HTTP/1.1&quot;
295
+ PATH_INFO: &quot;/api/v1/users/42&quot;
296
+ QUERY_STRING: &quot;&quot;
297
+ REMOTE_ADDR: &quot;127.0.0.1&quot;
298
+ REQUEST_METHOD: &quot;GET&quot;
299
+ REQUEST_PATH: &quot;/api/v1/users/42&quot;
300
+ REQUEST_URI: &quot;/api/v1/users/42&quot;
301
+ SCRIPT_NAME: &quot;&quot;
302
+ SERVER_NAME: &quot;localhost&quot;
303
+ SERVER_PORT: &quot;3000&quot;
304
+ SERVER_PROTOCOL: &quot;HTTP/1.1&quot;
305
+ SERVER_SOFTWARE: &quot;Mongrel 1.1.5&quot;
306
+ action_controller.instance: #&lt;Api::V1::UsersController:0x10e73e3a8 @_action_name=&quot;show&quot;, @_headers={&quot;Content-Type&quot;=&gt;&quot;text/html&quot;}, @current_user_session=#&lt;UserSession: {:unauthorized_record=&gt;&quot;&lt;protected&gt;&quot;}&gt;, @_config=#&lt;OrderedHash {}&gt;, @_env={&quot;action_dispatch.request.formats&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.request.parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, &quot;rack.session&quot;=&gt;{}, &quot;HTTP_ACCEPT&quot;=&gt;&quot;*/*&quot;, &quot;HTTP_HOST&quot;=&gt;&quot;localhost:3000&quot;, &quot;SERVER_NAME&quot;=&gt;&quot;localhost&quot;, &quot;action_dispatch.remote_ip&quot;=&gt;#&lt;ActionDispatch::RemoteIp::RemoteIpGetter:0x10e993400 @env={...}, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i, @check_ip_spoofing=true, @remote_addrs=[]&gt;, &quot;rack.url_scheme&quot;=&gt;&quot;http&quot;, &quot;REQUEST_PATH&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;CONTENT_LENGTH&quot;=&gt;&quot;37&quot;, &quot;action_dispatch.request.query_parameters&quot;=&gt;{}, &quot;action_dispatch.request.unsigned_session_cookie&quot;=&gt;{}, &quot;rack.errors&quot;=&gt;#&lt;IO:0x1094fcd10&gt;, &quot;CONTENT_TYPE&quot;=&gt;&quot;application/x-www-form-urlencoded&quot;, &quot;SERVER_PROTOCOL&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;hoptoad.error_id&quot;=&gt;nil, &quot;action_dispatch.request.accepts&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.secret_token&quot;=&gt;&quot;83967e16c1b5ea7b4d2ebe7e14135a9472ea4e95cef9becba105bc5887b9fd997f834e05ffd72d402b425e9c2a87ef70b56c5ae19c86c1e49bfb03462c074425&quot;, &quot;rack.version&quot;=&gt;[1, 1], &quot;rack.run_once&quot;=&gt;false, &quot;SERVER_SOFTWARE&quot;=&gt;&quot;Mongrel 1.1.5&quot;, &quot;PATH_INFO&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;REMOTE_ADDR&quot;=&gt;&quot;127.0.0.1&quot;, &quot;action_dispatch.request.path_parameters&quot;=&gt;{:action=&gt;&quot;show&quot;, :id=&gt;&quot;42&quot;, :controller=&gt;&quot;api/v1/users&quot;}, &quot;SCRIPT_NAME&quot;=&gt;&quot;&quot;, &quot;action_dispatch.parameter_filter&quot;=&gt;[:password], &quot;action_dispatch.show_exceptions&quot;=&gt;true, &quot;rack.multithread&quot;=&gt;false, &quot;HTTP_VERSION&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;action_dispatch.request.request_parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;rack.request.form_vars&quot;=&gt;&quot;user_credentials=Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action_dispatch.cookies&quot;=&gt;{}, &quot;rack.multiprocess&quot;=&gt;false, &quot;REQUEST_URI&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;rack.request.query_hash&quot;=&gt;{}, &quot;rack.request.form_input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;SERVER_PORT&quot;=&gt;&quot;3000&quot;, &quot;action_controller.instance&quot;=&gt;#&lt;Api::V1::UsersController:0x10e73e3a8 ...&gt;, &quot;rack.session.options&quot;=&gt;{:expire_after=&gt;nil, :httponly=&gt;true, :domain=&gt;nil, :path=&gt;&quot;/&quot;, :secure=&gt;false, :id=&gt;nil}, &quot;REQUEST_METHOD&quot;=&gt;&quot;GET&quot;, &quot;oauth2&quot;=&gt;#&lt;OAuth2::Provider::Rack::ResourceRequest:0x10e987880 @env={...}&gt;, &quot;rack.request.query_string&quot;=&gt;&quot;&quot;, &quot;rack.request.form_hash&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;action_dispatch.request.content_type&quot;=&gt;#&lt;Mime::Type:0x108a2fe28 @symbol=:url_encoded_form, @synonyms=[], @string=&quot;application/x-www-form-urlencoded&quot;&gt;, &quot;QUERY_STRING&quot;=&gt;&quot;&quot;, &quot;rack.input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;GATEWAY_INTERFACE&quot;=&gt;&quot;CGI/1.2&quot;}, @_response=#&lt;ActionDispatch::Response:0x10e73e218 @cookie=[], @cache_control={}, @body=[], @header={}, @writer=#&lt;Proc:0x0000000108d46878@/Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/gems/actionpack-3.0.9/lib/action_dispatch/http/response.rb:43&gt;, @block=nil, @blank=false, @status=200, @sending_file=false, @etag=nil, @length=0, @request=#&lt;ActionDispatch::Request:0x10e73e2e0 @request_method=&quot;GET&quot;, @filtered_parameters={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @fullpath=&quot;/api/v1/users/42&quot;, @env={&quot;action_dispatch.request.formats&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.request.parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, &quot;rack.session&quot;=&gt;{}, &quot;HTTP_ACCEPT&quot;=&gt;&quot;*/*&quot;, &quot;HTTP_HOST&quot;=&gt;&quot;localhost:3000&quot;, &quot;SERVER_NAME&quot;=&gt;&quot;localhost&quot;, &quot;action_dispatch.remote_ip&quot;=&gt;#&lt;ActionDispatch::RemoteIp::RemoteIpGetter:0x10e993400 @env={...}, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i, @check_ip_spoofing=true, @remote_addrs=[]&gt;, &quot;rack.url_scheme&quot;=&gt;&quot;http&quot;, &quot;REQUEST_PATH&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;CONTENT_LENGTH&quot;=&gt;&quot;37&quot;, &quot;action_dispatch.request.query_parameters&quot;=&gt;{}, &quot;action_dispatch.request.unsigned_session_cookie&quot;=&gt;{}, &quot;rack.errors&quot;=&gt;#&lt;IO:0x1094fcd10&gt;, &quot;CONTENT_TYPE&quot;=&gt;&quot;application/x-www-form-urlencoded&quot;, &quot;SERVER_PROTOCOL&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;hoptoad.error_id&quot;=&gt;nil, &quot;action_dispatch.request.accepts&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.secret_token&quot;=&gt;&quot;83967e16c1b5ea7b4d2ebe7e14135a9472ea4e95cef9becba105bc5887b9fd997f834e05ffd72d402b425e9c2a87ef70b56c5ae19c86c1e49bfb03462c074425&quot;, &quot;rack.version&quot;=&gt;[1, 1], &quot;rack.run_once&quot;=&gt;false, &quot;SERVER_SOFTWARE&quot;=&gt;&quot;Mongrel 1.1.5&quot;, &quot;PATH_INFO&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;REMOTE_ADDR&quot;=&gt;&quot;127.0.0.1&quot;, &quot;action_dispatch.request.path_parameters&quot;=&gt;{:action=&gt;&quot;show&quot;, :id=&gt;&quot;42&quot;, :controller=&gt;&quot;api/v1/users&quot;}, &quot;SCRIPT_NAME&quot;=&gt;&quot;&quot;, &quot;action_dispatch.parameter_filter&quot;=&gt;[:password], &quot;action_dispatch.show_exceptions&quot;=&gt;true, &quot;rack.multithread&quot;=&gt;false, &quot;HTTP_VERSION&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;action_dispatch.request.request_parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;rack.request.form_vars&quot;=&gt;&quot;user_credentials=Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action_dispatch.cookies&quot;=&gt;{}, &quot;rack.multiprocess&quot;=&gt;false, &quot;REQUEST_URI&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;rack.request.query_hash&quot;=&gt;{}, &quot;rack.request.form_input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;SERVER_PORT&quot;=&gt;&quot;3000&quot;, &quot;action_controller.instance&quot;=&gt;#&lt;Api::V1::UsersController:0x10e73e3a8 ...&gt;, &quot;rack.session.options&quot;=&gt;{:expire_after=&gt;nil, :httponly=&gt;true, :domain=&gt;nil, :path=&gt;&quot;/&quot;, :secure=&gt;false, :id=&gt;nil}, &quot;REQUEST_METHOD&quot;=&gt;&quot;GET&quot;, &quot;oauth2&quot;=&gt;#&lt;OAuth2::Provider::Rack::ResourceRequest:0x10e987880 @env={...}&gt;, &quot;rack.request.query_string&quot;=&gt;&quot;&quot;, &quot;rack.request.form_hash&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;action_dispatch.request.content_type&quot;=&gt;#&lt;Mime::Type:0x108a2fe28 @symbol=:url_encoded_form, @synonyms=[], @string=&quot;application/x-www-form-urlencoded&quot;&gt;, &quot;QUERY_STRING&quot;=&gt;&quot;&quot;, &quot;rack.input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;GATEWAY_INTERFACE&quot;=&gt;&quot;CGI/1.2&quot;}, @method=&quot;GET&quot;&gt;&gt;, @lookup_context=#&lt;ActionView::LookupContext:0x10e73dea8 @view_paths=[#&lt;ActionView::FileSystemResolver:0x10ad35d28 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10ad36ca0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/ssl_requirement/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10ad83910 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/serialized_attributes/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10adf8f30 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/haml/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af2a1b0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/formtastic/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af6ec70 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/caching_presenter/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af82c70 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/attribute_mapper/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10affa1d0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/alter_table/app/views&quot;, @cached={}&gt;], @details_key=nil, @details={:handlers=&gt;[:haml, :rhtml, :rjs, :rxml, :builder, :erb], :formats=&gt;[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=&gt;[:en, :en]}, @skip_default_locale=false, @frozen_formats=false&gt;, @_request=#&lt;ActionDispatch::Request:0x10e73e2e0 @request_method=&quot;GET&quot;, @filtered_parameters={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @fullpath=&quot;/api/v1/users/42&quot;, @env={&quot;action_dispatch.request.formats&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.request.parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, &quot;rack.session&quot;=&gt;{}, &quot;HTTP_ACCEPT&quot;=&gt;&quot;*/*&quot;, &quot;HTTP_HOST&quot;=&gt;&quot;localhost:3000&quot;, &quot;SERVER_NAME&quot;=&gt;&quot;localhost&quot;, &quot;action_dispatch.remote_ip&quot;=&gt;#&lt;ActionDispatch::RemoteIp::RemoteIpGetter:0x10e993400 @env={...}, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i, @check_ip_spoofing=true, @remote_addrs=[]&gt;, &quot;rack.url_scheme&quot;=&gt;&quot;http&quot;, &quot;REQUEST_PATH&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;CONTENT_LENGTH&quot;=&gt;&quot;37&quot;, &quot;action_dispatch.request.query_parameters&quot;=&gt;{}, &quot;action_dispatch.request.unsigned_session_cookie&quot;=&gt;{}, &quot;rack.errors&quot;=&gt;#&lt;IO:0x1094fcd10&gt;, &quot;CONTENT_TYPE&quot;=&gt;&quot;application/x-www-form-urlencoded&quot;, &quot;SERVER_PROTOCOL&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;hoptoad.error_id&quot;=&gt;nil, &quot;action_dispatch.request.accepts&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.secret_token&quot;=&gt;&quot;83967e16c1b5ea7b4d2ebe7e14135a9472ea4e95cef9becba105bc5887b9fd997f834e05ffd72d402b425e9c2a87ef70b56c5ae19c86c1e49bfb03462c074425&quot;, &quot;rack.version&quot;=&gt;[1, 1], &quot;rack.run_once&quot;=&gt;false, &quot;SERVER_SOFTWARE&quot;=&gt;&quot;Mongrel 1.1.5&quot;, &quot;PATH_INFO&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;REMOTE_ADDR&quot;=&gt;&quot;127.0.0.1&quot;, &quot;action_dispatch.request.path_parameters&quot;=&gt;{:action=&gt;&quot;show&quot;, :id=&gt;&quot;42&quot;, :controller=&gt;&quot;api/v1/users&quot;}, &quot;SCRIPT_NAME&quot;=&gt;&quot;&quot;, &quot;action_dispatch.parameter_filter&quot;=&gt;[:password], &quot;action_dispatch.show_exceptions&quot;=&gt;true, &quot;rack.multithread&quot;=&gt;false, &quot;HTTP_VERSION&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;action_dispatch.request.request_parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;rack.request.form_vars&quot;=&gt;&quot;user_credentials=Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action_dispatch.cookies&quot;=&gt;{}, &quot;rack.multiprocess&quot;=&gt;false, &quot;REQUEST_URI&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;rack.request.query_hash&quot;=&gt;{}, &quot;rack.request.form_input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;SERVER_PORT&quot;=&gt;&quot;3000&quot;, &quot;action_controller.instance&quot;=&gt;#&lt;Api::V1::UsersController:0x10e73e3a8 ...&gt;, &quot;rack.session.options&quot;=&gt;{:expire_after=&gt;nil, :httponly=&gt;true, :domain=&gt;nil, :path=&gt;&quot;/&quot;, :secure=&gt;false, :id=&gt;nil}, &quot;REQUEST_METHOD&quot;=&gt;&quot;GET&quot;, &quot;oauth2&quot;=&gt;#&lt;OAuth2::Provider::Rack::ResourceRequest:0x10e987880 @env={...}&gt;, &quot;rack.request.query_string&quot;=&gt;&quot;&quot;, &quot;rack.request.form_hash&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;action_dispatch.request.content_type&quot;=&gt;#&lt;Mime::Type:0x108a2fe28 @symbol=:url_encoded_form, @synonyms=[], @string=&quot;application/x-www-form-urlencoded&quot;&gt;, &quot;QUERY_STRING&quot;=&gt;&quot;&quot;, &quot;rack.input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;GATEWAY_INTERFACE&quot;=&gt;&quot;CGI/1.2&quot;}, @method=&quot;GET&quot;&gt;, @_params={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @_response_body=nil, @view_context_class=nil, @action_has_layout=true, @_status=200, @current_user=#&lt;User id: 1, created_at: &quot;2011-08-29 18:18:18&quot;, updated_at: &quot;2011-08-29 18:19:08&quot;, email: &quot;staff@recruitmilitary.com&quot;, crypted_password: &quot;0c2e2255b213959ab77da74dd2a427681990dafefb999048f4f...&quot;, password_salt: &quot;BUuHfUgauBblH5J5aghi&quot;, persistence_token: &quot;ea6022d6e567f73727b2e80a0cae54b97c21031ee8232fa9162...&quot;, login_count: 0, last_request_at: &quot;2011-08-29 18:19:08&quot;, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, first_name: &quot;Staff&quot;, last_name: &quot;McStafforson&quot;, phone: nil, unsubscribed_at: nil, searchable: false, perishable_token: &quot;O0pvi9mlkIlTAz9VGwCh&quot;, secret_id: &quot;8997cf28a075ac67ac4372eda8fefc39&quot;, single_access_token: &quot;Bdrc3t1LaiWtygbJ4jD6&quot;, email_md5: &quot;3e67fa7c8045d085e66a51deee26cbc4&quot;, hidden_at: nil, primary_role_id: 3, email_invalid_at: nil, agreement_acknowledged_at: nil, agreement_initials: nil, confirmed_at: &quot;2011-08-29 18:18:18&quot;&gt;&gt;
307
+ action_dispatch.cookies: {}
308
+ action_dispatch.parameter_filter: [:password]
309
+ action_dispatch.remote_ip: #&lt;ActionDispatch::RemoteIp::RemoteIpGetter:0x10e993400 @env={&quot;action_dispatch.request.formats&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.request.parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, &quot;rack.session&quot;=&gt;{}, &quot;HTTP_ACCEPT&quot;=&gt;&quot;*/*&quot;, &quot;HTTP_HOST&quot;=&gt;&quot;localhost:3000&quot;, &quot;SERVER_NAME&quot;=&gt;&quot;localhost&quot;, &quot;action_dispatch.remote_ip&quot;=&gt;#&lt;ActionDispatch::RemoteIp::RemoteIpGetter:0x10e993400 ...&gt;, &quot;rack.url_scheme&quot;=&gt;&quot;http&quot;, &quot;REQUEST_PATH&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;CONTENT_LENGTH&quot;=&gt;&quot;37&quot;, &quot;action_dispatch.request.query_parameters&quot;=&gt;{}, &quot;action_dispatch.request.unsigned_session_cookie&quot;=&gt;{}, &quot;rack.errors&quot;=&gt;#&lt;IO:0x1094fcd10&gt;, &quot;CONTENT_TYPE&quot;=&gt;&quot;application/x-www-form-urlencoded&quot;, &quot;SERVER_PROTOCOL&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;hoptoad.error_id&quot;=&gt;nil, &quot;action_dispatch.request.accepts&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.secret_token&quot;=&gt;&quot;83967e16c1b5ea7b4d2ebe7e14135a9472ea4e95cef9becba105bc5887b9fd997f834e05ffd72d402b425e9c2a87ef70b56c5ae19c86c1e49bfb03462c074425&quot;, &quot;rack.version&quot;=&gt;[1, 1], &quot;rack.run_once&quot;=&gt;false, &quot;SERVER_SOFTWARE&quot;=&gt;&quot;Mongrel 1.1.5&quot;, &quot;PATH_INFO&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;REMOTE_ADDR&quot;=&gt;&quot;127.0.0.1&quot;, &quot;action_dispatch.request.path_parameters&quot;=&gt;{:action=&gt;&quot;show&quot;, :id=&gt;&quot;42&quot;, :controller=&gt;&quot;api/v1/users&quot;}, &quot;SCRIPT_NAME&quot;=&gt;&quot;&quot;, &quot;action_dispatch.parameter_filter&quot;=&gt;[:password], &quot;action_dispatch.show_exceptions&quot;=&gt;true, &quot;rack.multithread&quot;=&gt;false, &quot;HTTP_VERSION&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;action_dispatch.request.request_parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;rack.request.form_vars&quot;=&gt;&quot;user_credentials=Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action_dispatch.cookies&quot;=&gt;{}, &quot;rack.multiprocess&quot;=&gt;false, &quot;REQUEST_URI&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;rack.request.query_hash&quot;=&gt;{}, &quot;rack.request.form_input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;SERVER_PORT&quot;=&gt;&quot;3000&quot;, &quot;action_controller.instance&quot;=&gt;#&lt;Api::V1::UsersController:0x10e73e3a8 @_action_name=&quot;show&quot;, @_headers={&quot;Content-Type&quot;=&gt;&quot;text/html&quot;}, @current_user_session=#&lt;UserSession: {:unauthorized_record=&gt;&quot;&lt;protected&gt;&quot;}&gt;, @_config=#&lt;OrderedHash {}&gt;, @_env={...}, @_response=#&lt;ActionDispatch::Response:0x10e73e218 @cookie=[], @cache_control={}, @body=[], @header={}, @writer=#&lt;Proc:0x0000000108d46878@/Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/gems/actionpack-3.0.9/lib/action_dispatch/http/response.rb:43&gt;, @block=nil, @blank=false, @status=200, @sending_file=false, @etag=nil, @length=0, @request=#&lt;ActionDispatch::Request:0x10e73e2e0 @request_method=&quot;GET&quot;, @filtered_parameters={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @fullpath=&quot;/api/v1/users/42&quot;, @env={...}, @method=&quot;GET&quot;&gt;&gt;, @lookup_context=#&lt;ActionView::LookupContext:0x10e73dea8 @view_paths=[#&lt;ActionView::FileSystemResolver:0x10ad35d28 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10ad36ca0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/ssl_requirement/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10ad83910 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/serialized_attributes/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10adf8f30 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/haml/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af2a1b0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/formtastic/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af6ec70 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/caching_presenter/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af82c70 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/attribute_mapper/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10affa1d0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/alter_table/app/views&quot;, @cached={}&gt;], @details_key=nil, @details={:handlers=&gt;[:haml, :rhtml, :rjs, :rxml, :builder, :erb], :formats=&gt;[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=&gt;[:en, :en]}, @skip_default_locale=false, @frozen_formats=false&gt;, @_request=#&lt;ActionDispatch::Request:0x10e73e2e0 @request_method=&quot;GET&quot;, @filtered_parameters={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @fullpath=&quot;/api/v1/users/42&quot;, @env={...}, @method=&quot;GET&quot;&gt;, @_params={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @_response_body=nil, @view_context_class=nil, @action_has_layout=true, @_status=200, @current_user=#&lt;User id: 1, created_at: &quot;2011-08-29 18:18:18&quot;, updated_at: &quot;2011-08-29 18:19:08&quot;, email: &quot;staff@recruitmilitary.com&quot;, crypted_password: &quot;0c2e2255b213959ab77da74dd2a427681990dafefb999048f4f...&quot;, password_salt: &quot;BUuHfUgauBblH5J5aghi&quot;, persistence_token: &quot;ea6022d6e567f73727b2e80a0cae54b97c21031ee8232fa9162...&quot;, login_count: 0, last_request_at: &quot;2011-08-29 18:19:08&quot;, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, first_name: &quot;Staff&quot;, last_name: &quot;McStafforson&quot;, phone: nil, unsubscribed_at: nil, searchable: false, perishable_token: &quot;O0pvi9mlkIlTAz9VGwCh&quot;, secret_id: &quot;8997cf28a075ac67ac4372eda8fefc39&quot;, single_access_token: &quot;Bdrc3t1LaiWtygbJ4jD6&quot;, email_md5: &quot;3e67fa7c8045d085e66a51deee26cbc4&quot;, hidden_at: nil, primary_role_id: 3, email_invalid_at: nil, agreement_acknowledged_at: nil, agreement_initials: nil, confirmed_at: &quot;2011-08-29 18:18:18&quot;&gt;&gt;, &quot;rack.session.options&quot;=&gt;{:expire_after=&gt;nil, :httponly=&gt;true, :domain=&gt;nil, :path=&gt;&quot;/&quot;, :secure=&gt;false, :id=&gt;nil}, &quot;REQUEST_METHOD&quot;=&gt;&quot;GET&quot;, &quot;oauth2&quot;=&gt;#&lt;OAuth2::Provider::Rack::ResourceRequest:0x10e987880 @env={...}&gt;, &quot;rack.request.query_string&quot;=&gt;&quot;&quot;, &quot;rack.request.form_hash&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;action_dispatch.request.content_type&quot;=&gt;#&lt;Mime::Type:0x108a2fe28 @symbol=:url_encoded_form, @synonyms=[], @string=&quot;application/x-www-form-urlencoded&quot;&gt;, &quot;QUERY_STRING&quot;=&gt;&quot;&quot;, &quot;rack.input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;GATEWAY_INTERFACE&quot;=&gt;&quot;CGI/1.2&quot;}, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i, @check_ip_spoofing=true, @remote_addrs=[]&gt;
310
+ action_dispatch.request.accepts: [#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;]
311
+ action_dispatch.request.content_type: #&lt;Mime::Type:0x108a2fe28 @symbol=:url_encoded_form, @synonyms=[], @string=&quot;application/x-www-form-urlencoded&quot;&gt;
312
+ action_dispatch.request.formats: [#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;]
313
+ action_dispatch.request.parameters: {&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}
314
+ action_dispatch.request.path_parameters: {:action=&gt;&quot;show&quot;, :id=&gt;&quot;42&quot;, :controller=&gt;&quot;api/v1/users&quot;}
315
+ action_dispatch.request.query_parameters: {}
316
+ action_dispatch.request.request_parameters: {&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}
317
+ action_dispatch.request.unsigned_session_cookie: {}
318
+ action_dispatch.secret_token: &quot;83967e16c1b5ea7b4d2ebe7e14135a9472ea4e95cef9becba105bc5887b9fd997f834e05ffd72d402b425e9c2a87ef70b56c5ae19c86c1e49bfb03462c074425&quot;
319
+ action_dispatch.show_exceptions: true
320
+ hoptoad.error_id: nil
321
+ oauth2: #&lt;OAuth2::Provider::Rack::ResourceRequest:0x10e987880 @env={&quot;action_dispatch.request.formats&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.request.parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, &quot;rack.session&quot;=&gt;{}, &quot;HTTP_ACCEPT&quot;=&gt;&quot;*/*&quot;, &quot;HTTP_HOST&quot;=&gt;&quot;localhost:3000&quot;, &quot;SERVER_NAME&quot;=&gt;&quot;localhost&quot;, &quot;action_dispatch.remote_ip&quot;=&gt;#&lt;ActionDispatch::RemoteIp::RemoteIpGetter:0x10e993400 @env={...}, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i, @check_ip_spoofing=true, @remote_addrs=[]&gt;, &quot;rack.url_scheme&quot;=&gt;&quot;http&quot;, &quot;REQUEST_PATH&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;CONTENT_LENGTH&quot;=&gt;&quot;37&quot;, &quot;action_dispatch.request.query_parameters&quot;=&gt;{}, &quot;action_dispatch.request.unsigned_session_cookie&quot;=&gt;{}, &quot;rack.errors&quot;=&gt;#&lt;IO:0x1094fcd10&gt;, &quot;CONTENT_TYPE&quot;=&gt;&quot;application/x-www-form-urlencoded&quot;, &quot;SERVER_PROTOCOL&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;hoptoad.error_id&quot;=&gt;nil, &quot;action_dispatch.request.accepts&quot;=&gt;[#&lt;Mime::Type:0x10b13b710 @symbol=nil, @synonyms=[], @string=&quot;*/*&quot;&gt;], &quot;action_dispatch.secret_token&quot;=&gt;&quot;83967e16c1b5ea7b4d2ebe7e14135a9472ea4e95cef9becba105bc5887b9fd997f834e05ffd72d402b425e9c2a87ef70b56c5ae19c86c1e49bfb03462c074425&quot;, &quot;rack.version&quot;=&gt;[1, 1], &quot;rack.run_once&quot;=&gt;false, &quot;SERVER_SOFTWARE&quot;=&gt;&quot;Mongrel 1.1.5&quot;, &quot;PATH_INFO&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;REMOTE_ADDR&quot;=&gt;&quot;127.0.0.1&quot;, &quot;action_dispatch.request.path_parameters&quot;=&gt;{:action=&gt;&quot;show&quot;, :id=&gt;&quot;42&quot;, :controller=&gt;&quot;api/v1/users&quot;}, &quot;SCRIPT_NAME&quot;=&gt;&quot;&quot;, &quot;action_dispatch.parameter_filter&quot;=&gt;[:password], &quot;action_dispatch.show_exceptions&quot;=&gt;true, &quot;rack.multithread&quot;=&gt;false, &quot;HTTP_VERSION&quot;=&gt;&quot;HTTP/1.1&quot;, &quot;action_dispatch.request.request_parameters&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;rack.request.form_vars&quot;=&gt;&quot;user_credentials=Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action_dispatch.cookies&quot;=&gt;{}, &quot;rack.multiprocess&quot;=&gt;false, &quot;REQUEST_URI&quot;=&gt;&quot;/api/v1/users/42&quot;, &quot;rack.request.query_hash&quot;=&gt;{}, &quot;rack.request.form_input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;SERVER_PORT&quot;=&gt;&quot;3000&quot;, &quot;action_controller.instance&quot;=&gt;#&lt;Api::V1::UsersController:0x10e73e3a8 @_action_name=&quot;show&quot;, @_headers={&quot;Content-Type&quot;=&gt;&quot;text/html&quot;}, @current_user_session=#&lt;UserSession: {:unauthorized_record=&gt;&quot;&lt;protected&gt;&quot;}&gt;, @_config=#&lt;OrderedHash {}&gt;, @_env={...}, @_response=#&lt;ActionDispatch::Response:0x10e73e218 @cookie=[], @cache_control={}, @body=[], @header={}, @writer=#&lt;Proc:0x0000000108d46878@/Users/michaelguterl/.rvm/gems/ree-1.8.7-2011.03@rm-board/gems/actionpack-3.0.9/lib/action_dispatch/http/response.rb:43&gt;, @block=nil, @blank=false, @status=200, @sending_file=false, @etag=nil, @length=0, @request=#&lt;ActionDispatch::Request:0x10e73e2e0 @request_method=&quot;GET&quot;, @filtered_parameters={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @fullpath=&quot;/api/v1/users/42&quot;, @env={...}, @method=&quot;GET&quot;&gt;&gt;, @lookup_context=#&lt;ActionView::LookupContext:0x10e73dea8 @view_paths=[#&lt;ActionView::FileSystemResolver:0x10ad35d28 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10ad36ca0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/ssl_requirement/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10ad83910 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/serialized_attributes/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10adf8f30 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/haml/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af2a1b0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/formtastic/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af6ec70 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/caching_presenter/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10af82c70 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/attribute_mapper/app/views&quot;, @cached={}&gt;, #&lt;ActionView::FileSystemResolver:0x10affa1d0 @caching=false, @path=&quot;/Users/michaelguterl/code/rm/board/vendor/plugins/alter_table/app/views&quot;, @cached={}&gt;], @details_key=nil, @details={:handlers=&gt;[:haml, :rhtml, :rjs, :rxml, :builder, :erb], :formats=&gt;[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=&gt;[:en, :en]}, @skip_default_locale=false, @frozen_formats=false&gt;, @_request=#&lt;ActionDispatch::Request:0x10e73e2e0 @request_method=&quot;GET&quot;, @filtered_parameters={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @fullpath=&quot;/api/v1/users/42&quot;, @env={...}, @method=&quot;GET&quot;&gt;, @_params={&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;42&quot;, &quot;controller&quot;=&gt;&quot;api/v1/users&quot;}, @_response_body=nil, @view_context_class=nil, @action_has_layout=true, @_status=200, @current_user=#&lt;User id: 1, created_at: &quot;2011-08-29 18:18:18&quot;, updated_at: &quot;2011-08-29 18:19:08&quot;, email: &quot;staff@recruitmilitary.com&quot;, crypted_password: &quot;0c2e2255b213959ab77da74dd2a427681990dafefb999048f4f...&quot;, password_salt: &quot;BUuHfUgauBblH5J5aghi&quot;, persistence_token: &quot;ea6022d6e567f73727b2e80a0cae54b97c21031ee8232fa9162...&quot;, login_count: 0, last_request_at: &quot;2011-08-29 18:19:08&quot;, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, first_name: &quot;Staff&quot;, last_name: &quot;McStafforson&quot;, phone: nil, unsubscribed_at: nil, searchable: false, perishable_token: &quot;O0pvi9mlkIlTAz9VGwCh&quot;, secret_id: &quot;8997cf28a075ac67ac4372eda8fefc39&quot;, single_access_token: &quot;Bdrc3t1LaiWtygbJ4jD6&quot;, email_md5: &quot;3e67fa7c8045d085e66a51deee26cbc4&quot;, hidden_at: nil, primary_role_id: 3, email_invalid_at: nil, agreement_acknowledged_at: nil, agreement_initials: nil, confirmed_at: &quot;2011-08-29 18:18:18&quot;&gt;&gt;, &quot;rack.session.options&quot;=&gt;{:expire_after=&gt;nil, :httponly=&gt;true, :domain=&gt;nil, :path=&gt;&quot;/&quot;, :secure=&gt;false, :id=&gt;nil}, &quot;REQUEST_METHOD&quot;=&gt;&quot;GET&quot;, &quot;oauth2&quot;=&gt;#&lt;OAuth2::Provider::Rack::ResourceRequest:0x10e987880 ...&gt;, &quot;rack.request.query_string&quot;=&gt;&quot;&quot;, &quot;rack.request.form_hash&quot;=&gt;{&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}, &quot;action_dispatch.request.content_type&quot;=&gt;#&lt;Mime::Type:0x108a2fe28 @symbol=:url_encoded_form, @synonyms=[], @string=&quot;application/x-www-form-urlencoded&quot;&gt;, &quot;QUERY_STRING&quot;=&gt;&quot;&quot;, &quot;rack.input&quot;=&gt;#&lt;StringIO:0x10e994a08&gt;, &quot;GATEWAY_INTERFACE&quot;=&gt;&quot;CGI/1.2&quot;}&gt;
322
+ rack.errors: #&lt;IO:0x1094fcd10&gt;
323
+ rack.input: #&lt;StringIO:0x10e994a08&gt;
324
+ rack.multiprocess: false
325
+ rack.multithread: false
326
+ rack.request.form_hash: {&quot;user_credentials&quot;=&gt;&quot;Bdrc3t1LaiWtygbJ4jD6&quot;}
327
+ rack.request.form_input: #&lt;StringIO:0x10e994a08&gt;
328
+ rack.request.form_vars: &quot;user_credentials=Bdrc3t1LaiWtygbJ4jD6&quot;
329
+ rack.request.query_hash: {}
330
+ rack.request.query_string: &quot;&quot;
331
+ rack.run_once: false
332
+ rack.session: {}
333
+ rack.session.options: {:expire_after=&gt;nil, :httponly=&gt;true, :domain=&gt;nil, :path=&gt;&quot;/&quot;, :secure=&gt;false, :id=&gt;nil}
334
+ rack.url_scheme: &quot;http&quot;
335
+ rack.version: [1, 1]</pre></div>
336
+
337
+
338
+ <h2 style="margin-top: 30px">Response</h2>
339
+ <p><b>Headers</b>: <pre>None</pre></p>
340
+
341
+
342
+
343
+ </body>
344
+ </html>
345
+
346
+ http_version: "1.1"
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://localhost:3000/api/v1/users
6
+ body: user_credentials=Bdrc3t1LaiWtygbJ4jD6&first_name=Steve&last_name=Jobs&password=password&email=&primary_role_id=1&password_confirmation=password
7
+ headers:
8
+ content-type:
9
+ - application/x-www-form-urlencoded
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 422
13
+ message:
14
+ headers:
15
+ x-ua-compatible:
16
+ - IE=Edge
17
+ content-type:
18
+ - application/json; charset=utf-8
19
+ date:
20
+ - Mon, 29 Aug 2011 18:19:06 GMT
21
+ x-runtime:
22
+ - "0.440739"
23
+ set-cookie:
24
+ - _board_session=BAh7BiIPc2Vzc2lvbl9pZCIlZGY0ZjVjMjY1ZWM2ZDI3YWRjZjcyNjIzMzc5MGU2MGM%3D--6907332cd363911c570608eb0c7a7c216db988d8; path=/; HttpOnly
25
+ cache-control:
26
+ - no-cache
27
+ transfer-encoding:
28
+ - chunked
29
+ body: "{\"errors\":{\"email\":[\"is too short (minimum is 6 characters)\",\"is invalid\",\"can't be blank\"]}}"
30
+ http_version: "1.1"