dossier 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +41 -1
- data/app/views/dossier/reports/show.html.haml +2 -2
- data/lib/dossier/version.rb +1 -1
- data/spec/dummy/config/database.yml +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +28 -508
- data/spec/dummy/log/test.log +26274 -764
- data/spec/fixtures/db/mysql2.yml +2 -2
- data/spec/fixtures/reports/employee.html +1 -1
- data/spec/fixtures/reports/employee_with_custom_client.html +1 -1
- data/spec/fixtures/reports/employee_with_footer.html +1 -1
- data/spec/fixtures/reports/employee_with_parameters.html +1 -1
- metadata +4 -24
- data/spec/dummy/tmp/cache/assets/C35/BF0/sprockets%2F64292e0008108df585a755f2876c7869 +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/EF0/sprockets%2F4e1e8b85785ee1929c8e355c96902e9c +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D45/6A0/sprockets%2F22f3562bf7d5e640880df2a5d683f2fc +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/DCF/420/sprockets%2F9f127ea0ab7236994d1ceaa7bbea86c8 +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
data/README.markdown
CHANGED
|
@@ -197,6 +197,46 @@ To see a report with all the bells and whistles, check out `spec/support/reports
|
|
|
197
197
|
|
|
198
198
|
Dossier currently supports all databases supported by ActiveRecord; it comes with `Dossier::Adapter::ActiveRecord`, which uses ActiveRecord connections for escaping and executing queries. However, as the `Dossier::Adapter` namespace implies, it was written to allow for other connection adapters. See `CONTRIBUTING.md` if you'd like to add one.
|
|
199
199
|
|
|
200
|
+
## Protecting Access to Reports
|
|
201
|
+
|
|
202
|
+
You probably want to provide some protection to your reports: require viewers to be logged in, possibly check whether they're allowed to access this particular report, etc.
|
|
203
|
+
|
|
204
|
+
Of course, you can protect your own controllers' use of Dossier reports however you wish. To protect report access via `Dossier::Controller`, you can make use of two facts:
|
|
205
|
+
|
|
206
|
+
1. `Dossier::Controller` subclasses `ApplicationController`
|
|
207
|
+
2. If you use an initializer, you can call methods on `Dossier::Controller`
|
|
208
|
+
|
|
209
|
+
So for a very simple, roll-your-own solution, you could do this:
|
|
210
|
+
|
|
211
|
+
```ruby
|
|
212
|
+
# config/initializers/dossier.rb
|
|
213
|
+
Rails.application.config.to_prepare do
|
|
214
|
+
# Define `#my_protection_method` on your ApplicationController
|
|
215
|
+
Dossier::ReportsController.before_filter :my_protection_method
|
|
216
|
+
end
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
For a more robust solution, you might make use of some gems. Here's a solution using [Devise](https://github.com/plataformatec/devise) for authentication and [Authority](https://github.com/nathanl/authority) for authorization:
|
|
220
|
+
|
|
221
|
+
```ruby
|
|
222
|
+
# app/controllers/application_controller.rb
|
|
223
|
+
class ApplicationController < ActionController::Base
|
|
224
|
+
# Basic "you must be logged in"; will apply to all subclassing controllers,
|
|
225
|
+
# including Dossier::Controller.
|
|
226
|
+
before_filter :authenticate_user!
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# config/initializers/dossier.rb
|
|
230
|
+
Rails.application.config.to_prepare do
|
|
231
|
+
# Use Authority to enforce viewing permissions for this report.
|
|
232
|
+
# You might set the report's `authorizer_name` to 'ReportsAuthorizer', and
|
|
233
|
+
# define that with a `readable_by?(user)` method that suits your needs
|
|
234
|
+
Dossier::ReportsController.authorize_actions_for :report_class
|
|
235
|
+
end
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
See the referenced gems for more documentation on using them.
|
|
239
|
+
|
|
200
240
|
## Running the Tests
|
|
201
241
|
|
|
202
242
|
Note: when you run the tests, Dossier will **make and/or truncate** some tables in the `dossier_test` database.
|
|
@@ -215,7 +255,7 @@ Note: when you run the tests, Dossier will **make and/or truncate** some tables
|
|
|
215
255
|
- Callbacks, eg:
|
|
216
256
|
- Stored procedures
|
|
217
257
|
- Reformat results
|
|
218
|
-
- Linking
|
|
258
|
+
- Linking
|
|
219
259
|
- To other reports
|
|
220
260
|
- To other formats
|
|
221
261
|
- Extending the formatter
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
%h1= report.class.name.titleize
|
|
2
2
|
|
|
3
|
+
= link_to 'Download CSV', dossier_report_path(format: 'csv', options: report.options, report: report.class.report_name), class: 'download-csv'
|
|
4
|
+
|
|
3
5
|
%table
|
|
4
6
|
%thead
|
|
5
7
|
%tr
|
|
@@ -17,5 +19,3 @@
|
|
|
17
19
|
%tr
|
|
18
20
|
- row.each do |value|
|
|
19
21
|
%th= value
|
|
20
|
-
|
|
21
|
-
= link_to 'Download CSV', dossier_report_path(format: 'csv', options: report.options, report: report.class.report_name), class: 'download-csv'
|
data/lib/dossier/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
@@ -1,513 +1,33 @@
|
|
|
1
1
|
Connecting to database specified by database.yml
|
|
2
|
+
[1m[36m (45.0ms)[0m [1mCREATE TABLE `employees` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `hired_on` date, `suspended` tinyint(1)) ENGINE=InnoDB[0m
|
|
3
|
+
[1m[35m (217.3ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
|
4
|
+
[1m[36m (141.9ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
|
5
|
+
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
|
6
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20130110141950')[0m
|
|
2
7
|
Connecting to database specified by database.yml
|
|
3
8
|
Connecting to database specified by database.yml
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
|
|
28
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
|
|
29
|
-
passenger (3.0.14) lib/phusion_passenger/utils.rb:470:in `safe_fork'
|
|
30
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
|
|
31
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
32
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
33
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:180:in `start'
|
|
34
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
|
|
35
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
|
|
36
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
|
|
37
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
|
|
38
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
|
|
39
|
-
<internal:prelude>:10:in `synchronize'
|
|
40
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
|
|
41
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
|
|
42
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
|
|
43
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
|
|
44
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
45
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
46
|
-
passenger (3.0.14) helper-scripts/passenger-spawn-server:99:in `<main>'
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.2ms)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Started GET "/woo" for 127.0.0.1 at 2013-02-05 09:02:55 -0500
|
|
53
|
-
|
|
54
|
-
NoMethodError (undefined method `action' for SiteController:Class):
|
|
55
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
|
56
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call'
|
|
57
|
-
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
|
58
|
-
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
|
59
|
-
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
|
60
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
|
|
61
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
|
62
|
-
rack (1.4.4) lib/rack/etag.rb:23:in `call'
|
|
63
|
-
rack (1.4.4) lib/rack/conditionalget.rb:25:in `call'
|
|
64
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
|
|
65
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
|
66
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
|
|
67
|
-
rack (1.4.4) lib/rack/session/abstract/id.rb:210:in `context'
|
|
68
|
-
rack (1.4.4) lib/rack/session/abstract/id.rb:205:in `call'
|
|
69
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
|
70
|
-
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
|
|
71
|
-
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
|
72
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
|
73
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__3036648868073490833__call__700523775367203622__callbacks'
|
|
74
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
|
|
75
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
|
76
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
|
77
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
|
78
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
|
79
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
|
80
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
|
81
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
|
82
|
-
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
|
|
83
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
|
|
84
|
-
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
|
|
85
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
|
|
86
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
|
87
|
-
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
|
|
88
|
-
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
|
|
89
|
-
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
|
90
|
-
rack (1.4.4) lib/rack/lock.rb:15:in `call'
|
|
91
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
|
|
92
|
-
railties (3.2.11) lib/rails/engine.rb:479:in `call'
|
|
93
|
-
railties (3.2.11) lib/rails/application.rb:223:in `call'
|
|
94
|
-
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
|
95
|
-
passenger (3.0.14) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
|
|
96
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
|
|
97
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
|
|
98
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
|
|
99
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
|
|
100
|
-
passenger (3.0.14) lib/phusion_passenger/utils.rb:470:in `safe_fork'
|
|
101
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
|
|
102
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
103
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
104
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:180:in `start'
|
|
105
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
|
|
106
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
|
|
107
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
|
|
108
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
|
|
109
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
|
|
110
|
-
<internal:prelude>:10:in `synchronize'
|
|
111
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
|
|
112
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
|
|
113
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
|
|
114
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
|
|
115
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
116
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
117
|
-
passenger (3.0.14) helper-scripts/passenger-spawn-server:99:in `<main>'
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
|
|
121
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (3.8ms)
|
|
122
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.0ms)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Started GET "/woo" for 127.0.0.1 at 2013-02-05 09:03:20 -0500
|
|
126
|
-
Processing by SiteController#index as HTML
|
|
127
|
-
Rendered text template (0.0ms)
|
|
128
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
Started GET "/employee_with_custom_controller" for 127.0.0.1 at 2013-02-05 09:03:27 -0500
|
|
132
|
-
|
|
133
|
-
ActionController::RoutingError (No route matches [GET] "/employee_with_custom_controller"):
|
|
134
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
|
135
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
|
136
|
-
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
|
|
137
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
|
|
138
|
-
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
|
|
139
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
|
|
140
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
|
141
|
-
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
|
|
142
|
-
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
|
|
143
|
-
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
|
144
|
-
rack (1.4.4) lib/rack/lock.rb:15:in `call'
|
|
145
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
|
|
146
|
-
railties (3.2.11) lib/rails/engine.rb:479:in `call'
|
|
147
|
-
railties (3.2.11) lib/rails/application.rb:223:in `call'
|
|
148
|
-
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
|
149
|
-
passenger (3.0.14) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
|
|
150
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
|
|
151
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
|
|
152
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
|
|
153
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
|
|
154
|
-
passenger (3.0.14) lib/phusion_passenger/utils.rb:470:in `safe_fork'
|
|
155
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
|
|
156
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
157
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
158
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:180:in `start'
|
|
159
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
|
|
160
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
|
|
161
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
|
|
162
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
|
|
163
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
|
|
164
|
-
<internal:prelude>:10:in `synchronize'
|
|
165
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
|
|
166
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
|
|
167
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
|
|
168
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
|
|
169
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
170
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
171
|
-
passenger (3.0.14) helper-scripts/passenger-spawn-server:99:in `<main>'
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
Started GET "/employee_report_with_custom_controller" for 127.0.0.1 at 2013-02-05 09:03:37 -0500
|
|
178
|
-
|
|
179
|
-
ActionController::RoutingError (No route matches [GET] "/employee_report_with_custom_controller"):
|
|
180
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
|
181
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
|
182
|
-
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
|
|
183
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
|
|
184
|
-
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
|
|
185
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
|
|
186
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
|
187
|
-
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
|
|
188
|
-
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
|
|
189
|
-
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
|
190
|
-
rack (1.4.4) lib/rack/lock.rb:15:in `call'
|
|
191
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
|
|
192
|
-
railties (3.2.11) lib/rails/engine.rb:479:in `call'
|
|
193
|
-
railties (3.2.11) lib/rails/application.rb:223:in `call'
|
|
194
|
-
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
|
195
|
-
passenger (3.0.14) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
|
|
196
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
|
|
197
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
|
|
198
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
|
|
199
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
|
|
200
|
-
passenger (3.0.14) lib/phusion_passenger/utils.rb:470:in `safe_fork'
|
|
201
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
|
|
202
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
203
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
204
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:180:in `start'
|
|
205
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
|
|
206
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
|
|
207
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
|
|
208
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
|
|
209
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
|
|
210
|
-
<internal:prelude>:10:in `synchronize'
|
|
211
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
|
|
212
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
|
|
213
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
|
|
214
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
|
|
215
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
216
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
217
|
-
passenger (3.0.14) helper-scripts/passenger-spawn-server:99:in `<main>'
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:03:44 -0500
|
|
224
|
-
Processing by SiteController#report as HTML
|
|
225
|
-
Completed 500 Internal Server Error in 2ms
|
|
226
|
-
|
|
227
|
-
NameError (uninitialized constant SiteController::EmployeeReport):
|
|
228
|
-
app/controllers/site_controller.rb:7:in `report'
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
|
|
232
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
|
|
233
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.8ms)
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:04:26 -0500
|
|
237
|
-
|
|
238
|
-
LoadError (cannot load such file -- /Users/adamhunter/Studio/adamhunter/dossier/spec/support/reports/employee_report.rb):
|
|
239
|
-
app/controllers/site_controller.rb:1:in `<top (required)>'
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
|
|
243
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
|
|
244
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.4ms)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:05:39 -0500
|
|
248
|
-
Processing by SiteController#report as HTML
|
|
249
|
-
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
|
250
|
-
ORDER BY name ASC[0m
|
|
251
|
-
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (12.0ms)
|
|
252
|
-
Completed 500 Internal Server Error in 23ms
|
|
253
|
-
|
|
254
|
-
ActionController::RoutingError (No route matches {:controller=>"dossier/reports", :action=>"show", :format=>"csv", :options=>nil}):
|
|
255
|
-
app/controllers/site_controller.rb:10:in `report'
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:06:14 -0500
|
|
262
|
-
Processing by SiteController#report as HTML
|
|
263
|
-
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
|
264
|
-
ORDER BY name ASC
|
|
265
|
-
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.7ms)
|
|
266
|
-
Compiled application.css (0ms) (pid 28859)
|
|
267
|
-
Compiled jquery.js (23ms) (pid 28859)
|
|
268
|
-
Compiled jquery_ujs.js (0ms) (pid 28859)
|
|
269
|
-
Compiled application.js (48ms) (pid 28859)
|
|
270
|
-
Completed 200 OK in 112ms (Views: 111.2ms | ActiveRecord: 0.3ms)
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-02-05 09:06:15 -0500
|
|
274
|
-
Served asset /application.css - 200 OK (4ms)
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-02-05 09:06:15 -0500
|
|
278
|
-
Served asset /application.js - 200 OK (5ms)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-02-05 09:06:15 -0500
|
|
282
|
-
Served asset /jquery_ujs.js - 200 OK (3ms)
|
|
9
|
+
Connecting to database specified by database.yml
|
|
10
|
+
[1m[36m (1.5ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
11
|
+
Migrating to CreateEmployees (20130110141950)
|
|
12
|
+
Migrating to AddDivisionToEmployees (20130110221932)
|
|
13
|
+
[1m[35m (109.6ms)[0m ALTER TABLE `employees` ADD `division` varchar(255)
|
|
14
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130110221932')[0m
|
|
15
|
+
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
|
16
|
+
Connecting to database specified by database.yml
|
|
17
|
+
[1m[36m (1.7ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
18
|
+
[1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
|
19
|
+
Migrating to AddDivisionToEmployees (20130110221932)
|
|
20
|
+
[1m[36m (85.8ms)[0m [1mALTER TABLE `employees` DROP `division`[0m
|
|
21
|
+
[1m[35m (0.6ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20130110221932'
|
|
22
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
23
|
+
Connecting to database specified by database.yml
|
|
24
|
+
[1m[36m (1.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
25
|
+
Migrating to CreateEmployees (20130110141950)
|
|
26
|
+
Migrating to AddDivisionToEmployees (20130110221932)
|
|
27
|
+
[1m[35m (50.1ms)[0m ALTER TABLE `employees` ADD `division` varchar(255)
|
|
28
|
+
[1m[36m (238.4ms)[0m [1mALTER TABLE `employees` ADD `salary` int(11)[0m
|
|
29
|
+
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20130110221932')
|
|
30
|
+
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
31
|
+
Connecting to database specified by database.yml
|
|
283
32
|
Connecting to database specified by database.yml
|
|
284
33
|
Connecting to database specified by database.yml
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-02-05 09:06:15 -0500
|
|
288
|
-
Served asset /jquery.js - 200 OK (3ms)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 09:06:20 -0500
|
|
292
|
-
Processing by Dossier::ReportsController#show as CSV
|
|
293
|
-
Parameters: {"report"=>"employee"}
|
|
294
|
-
Completed 500 Internal Server Error in 1ms
|
|
295
|
-
|
|
296
|
-
NameError (uninitialized constant EmployeeReport):
|
|
297
|
-
activesupport (3.2.11) lib/active_support/inflector/methods.rb:230:in `block in constantize'
|
|
298
|
-
activesupport (3.2.11) lib/active_support/inflector/methods.rb:229:in `each'
|
|
299
|
-
activesupport (3.2.11) lib/active_support/inflector/methods.rb:229:in `constantize'
|
|
300
|
-
activesupport (3.2.11) lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
|
|
301
|
-
/Users/adamhunter/Studio/adamhunter/dossier/lib/dossier.rb:26:in `name_to_class'
|
|
302
|
-
/Users/adamhunter/Studio/adamhunter/dossier/app/controllers/dossier/reports_controller.rb:35:in `report_class'
|
|
303
|
-
/Users/adamhunter/Studio/adamhunter/dossier/app/controllers/dossier/reports_controller.rb:4:in `show'
|
|
304
|
-
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
|
|
305
|
-
actionpack (3.2.11) lib/abstract_controller/base.rb:167:in `process_action'
|
|
306
|
-
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
|
307
|
-
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
|
308
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:414:in `_run__3560204119445928208__process_action__2105358548339878917__callbacks'
|
|
309
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
|
|
310
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
|
311
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
|
312
|
-
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
|
|
313
|
-
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
|
314
|
-
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
|
315
|
-
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
|
|
316
|
-
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
|
317
|
-
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
|
|
318
|
-
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
|
319
|
-
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
|
320
|
-
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
|
321
|
-
actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process'
|
|
322
|
-
actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process'
|
|
323
|
-
actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch'
|
|
324
|
-
actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
|
|
325
|
-
actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action'
|
|
326
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call'
|
|
327
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
|
328
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call'
|
|
329
|
-
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
|
330
|
-
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
|
331
|
-
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
|
332
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
|
|
333
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
|
334
|
-
rack (1.4.4) lib/rack/etag.rb:23:in `call'
|
|
335
|
-
rack (1.4.4) lib/rack/conditionalget.rb:25:in `call'
|
|
336
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
|
|
337
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
|
338
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
|
|
339
|
-
rack (1.4.4) lib/rack/session/abstract/id.rb:210:in `context'
|
|
340
|
-
rack (1.4.4) lib/rack/session/abstract/id.rb:205:in `call'
|
|
341
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
|
342
|
-
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
|
|
343
|
-
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
|
344
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
|
345
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__3036648868073490833__call__700523775367203622__callbacks'
|
|
346
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
|
|
347
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
|
348
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
|
349
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
|
350
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
|
351
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
|
352
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
|
353
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
|
354
|
-
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
|
|
355
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
|
|
356
|
-
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
|
|
357
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
|
|
358
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
|
359
|
-
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
|
|
360
|
-
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
|
|
361
|
-
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
|
362
|
-
rack (1.4.4) lib/rack/lock.rb:15:in `call'
|
|
363
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
|
|
364
|
-
railties (3.2.11) lib/rails/engine.rb:479:in `call'
|
|
365
|
-
railties (3.2.11) lib/rails/application.rb:223:in `call'
|
|
366
|
-
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
|
367
|
-
passenger (3.0.14) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
|
|
368
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
|
|
369
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
|
|
370
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
|
|
371
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
|
|
372
|
-
passenger (3.0.14) lib/phusion_passenger/utils.rb:470:in `safe_fork'
|
|
373
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
|
|
374
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
375
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
376
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:180:in `start'
|
|
377
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
|
|
378
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
|
|
379
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
|
|
380
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
|
|
381
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
|
|
382
|
-
<internal:prelude>:10:in `synchronize'
|
|
383
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
|
|
384
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
|
|
385
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
|
|
386
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
|
|
387
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
388
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
389
|
-
passenger (3.0.14) helper-scripts/passenger-spawn-server:99:in `<main>'
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
|
|
393
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
|
|
394
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.5ms)
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-02-05 09:06:30 -0500
|
|
398
|
-
Processing by Dossier::ReportsController#show as CSV
|
|
399
|
-
Parameters: {"report"=>"employee"}
|
|
400
|
-
Completed 500 Internal Server Error in 1ms
|
|
401
|
-
|
|
402
|
-
NameError (uninitialized constant EmployeeReport):
|
|
403
|
-
activesupport (3.2.11) lib/active_support/inflector/methods.rb:230:in `block in constantize'
|
|
404
|
-
activesupport (3.2.11) lib/active_support/inflector/methods.rb:229:in `each'
|
|
405
|
-
activesupport (3.2.11) lib/active_support/inflector/methods.rb:229:in `constantize'
|
|
406
|
-
activesupport (3.2.11) lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
|
|
407
|
-
/Users/adamhunter/Studio/adamhunter/dossier/lib/dossier.rb:26:in `name_to_class'
|
|
408
|
-
/Users/adamhunter/Studio/adamhunter/dossier/app/controllers/dossier/reports_controller.rb:35:in `report_class'
|
|
409
|
-
/Users/adamhunter/Studio/adamhunter/dossier/app/controllers/dossier/reports_controller.rb:4:in `show'
|
|
410
|
-
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
|
|
411
|
-
actionpack (3.2.11) lib/abstract_controller/base.rb:167:in `process_action'
|
|
412
|
-
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
|
413
|
-
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
|
414
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:414:in `_run__3560204119445928208__process_action__2105358548339878917__callbacks'
|
|
415
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
|
|
416
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
|
417
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
|
418
|
-
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
|
|
419
|
-
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
|
420
|
-
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
|
421
|
-
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
|
|
422
|
-
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
|
423
|
-
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
|
|
424
|
-
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
|
425
|
-
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
|
426
|
-
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
|
427
|
-
actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process'
|
|
428
|
-
actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process'
|
|
429
|
-
actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch'
|
|
430
|
-
actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
|
|
431
|
-
actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action'
|
|
432
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call'
|
|
433
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
|
434
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call'
|
|
435
|
-
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
|
436
|
-
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
|
437
|
-
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
|
438
|
-
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
|
|
439
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
|
440
|
-
rack (1.4.4) lib/rack/etag.rb:23:in `call'
|
|
441
|
-
rack (1.4.4) lib/rack/conditionalget.rb:25:in `call'
|
|
442
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
|
|
443
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
|
444
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
|
|
445
|
-
rack (1.4.4) lib/rack/session/abstract/id.rb:210:in `context'
|
|
446
|
-
rack (1.4.4) lib/rack/session/abstract/id.rb:205:in `call'
|
|
447
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
|
448
|
-
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
|
|
449
|
-
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
|
450
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
|
451
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__3036648868073490833__call__700523775367203622__callbacks'
|
|
452
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
|
|
453
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
|
454
|
-
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
|
455
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
|
456
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
|
457
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
|
458
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
|
459
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
|
460
|
-
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
|
|
461
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
|
|
462
|
-
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
|
|
463
|
-
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
|
|
464
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
|
465
|
-
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
|
|
466
|
-
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
|
|
467
|
-
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
|
468
|
-
rack (1.4.4) lib/rack/lock.rb:15:in `call'
|
|
469
|
-
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
|
|
470
|
-
railties (3.2.11) lib/rails/engine.rb:479:in `call'
|
|
471
|
-
railties (3.2.11) lib/rails/application.rb:223:in `call'
|
|
472
|
-
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
|
473
|
-
passenger (3.0.14) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
|
|
474
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
|
|
475
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
|
|
476
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
|
|
477
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
|
|
478
|
-
passenger (3.0.14) lib/phusion_passenger/utils.rb:470:in `safe_fork'
|
|
479
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
|
|
480
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
481
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
482
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:180:in `start'
|
|
483
|
-
passenger (3.0.14) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
|
|
484
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
|
|
485
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
|
|
486
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
|
|
487
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
|
|
488
|
-
<internal:prelude>:10:in `synchronize'
|
|
489
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
|
|
490
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
|
|
491
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
|
|
492
|
-
passenger (3.0.14) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
|
|
493
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
|
|
494
|
-
passenger (3.0.14) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
|
|
495
|
-
passenger (3.0.14) helper-scripts/passenger-spawn-server:99:in `<main>'
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
|
|
499
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
|
|
500
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.6ms)
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-02-05 09:09:20 -0500
|
|
504
|
-
Processing by SiteController#report as HTML
|
|
505
|
-
Completed 500 Internal Server Error in 2ms
|
|
506
|
-
|
|
507
|
-
NameError (uninitialized constant SiteController::EmployeeReport):
|
|
508
|
-
app/controllers/site_controller.rb:7:in `report'
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
|
|
512
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
|
|
513
|
-
Rendered /Users/adamhunter/.rvm/gems/ruby-1.9.3-p194@dossier2/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.2ms)
|