modulate 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/modulate/templates/_modulate_attachments.html.haml +1 -1
- data/lib/modulate.rb +6 -1
- data/lib/modulate/engine.rb +1 -4
- data/lib/modulate/version.rb +1 -1
- data/spec/dummy/app/controllers/accounts_controller.rb +6 -3
- data/spec/dummy/app/views/accounts/_modulate_attachments.html.haml +1 -1
- data/spec/dummy/log/development.log +776 -0
- data/spec/dummy/log/test.log +90 -0
- metadata +4 -4
@@ -4,7 +4,7 @@
|
|
4
4
|
= f.inputs do
|
5
5
|
= f.semantic_fields_for :modulate_documents, @<%= model_name.underscore %>.modulate_documents.build do |d|
|
6
6
|
= d.input(:attachment, as: :file, label: 'Choose document to attach', required: true,
|
7
|
-
input_html: {multiple: true}).sub('[attachment][]', '[attachment]').html_safe
|
7
|
+
input_html: {multiple: true, name: "account[modulate_documents_attributes][][attachment]"}).sub('[attachment][]', '[attachment]').html_safe
|
8
8
|
|
9
9
|
= f.actions do
|
10
10
|
= f.action :submit, as: 'button', button_html: {class: 'btn btn-primary'}
|
data/lib/modulate.rb
CHANGED
data/lib/modulate/engine.rb
CHANGED
data/lib/modulate/version.rb
CHANGED
@@ -10,12 +10,15 @@ class AccountsController < ApplicationController
|
|
10
10
|
def update
|
11
11
|
@account = Account.find(params[:id])
|
12
12
|
@account.attributes = params[:account]
|
13
|
-
@
|
14
|
-
@
|
13
|
+
@docs = @account.modulate_documents.select(&:new_record?)
|
14
|
+
@docs.each do |doc|
|
15
|
+
doc.attached_by_id = 1 unless doc.blank?
|
16
|
+
end
|
17
|
+
|
15
18
|
if @account.save
|
16
19
|
redirect_to accounts_path, notice: "successfully"
|
17
20
|
else
|
18
|
-
flash.now[:alert] = "
|
21
|
+
flash.now[:alert] = "error"
|
19
22
|
render :show
|
20
23
|
end
|
21
24
|
end
|
@@ -4,7 +4,7 @@
|
|
4
4
|
= f.inputs do
|
5
5
|
= f.semantic_fields_for :modulate_documents, @account.modulate_documents.build do |d|
|
6
6
|
= d.input(:attachment, as: :file, label: 'Choose document to attach', required: true,
|
7
|
-
input_html: {multiple: true}).sub('[attachment][]', '[attachment]').html_safe
|
7
|
+
input_html: {multiple: true, name: "account[modulate_documents_attributes][][attachment]"}).sub('[attachment][]', '[attachment]').html_safe
|
8
8
|
|
9
9
|
= f.actions do
|
10
10
|
= f.action :submit, as: 'button', button_html: {class: 'btn btn-primary'}
|
@@ -3080,3 +3080,779 @@ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 13:58:41
|
|
3080
3080
|
Served asset /application.js - 304 Not Modified (0ms)
|
3081
3081
|
Connecting to database specified by database.yml
|
3082
3082
|
Connecting to database specified by database.yml
|
3083
|
+
Connecting to database specified by database.yml
|
3084
|
+
|
3085
|
+
|
3086
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 14:55:50 -0400
|
3087
|
+
Processing by AccountsController#update as HTML
|
3088
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"label"=>"Some Label", "public"=>"0", "id"=>"1"}}}, "button"=>"", "id"=>"1"}
|
3089
|
+
[1m[36mAccount Load (0.5ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3090
|
+
[1m[35mModulate::Document Load (0.4ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account' AND `modulate_documents`.`id` IN (1)
|
3091
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3092
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3093
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3094
|
+
[1m[35mModulate::Document Exists (0.4ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`id` != 1 AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3095
|
+
[1m[36m (2.8ms)[0m [1mUPDATE `modulate_documents` SET `label` = 'Some Label', `public` = 0, `updated_at` = '2013-03-26 18:55:51' WHERE `modulate_documents`.`id` = 1[0m
|
3096
|
+
[1m[35m (0.6ms)[0m COMMIT
|
3097
|
+
Redirected to http://modulate.local/accounts
|
3098
|
+
Completed 302 Found in 260ms (ActiveRecord: 44.2ms)
|
3099
|
+
|
3100
|
+
|
3101
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
|
3102
|
+
Processing by AccountsController#index as HTML
|
3103
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
3104
|
+
Rendered accounts/index.html.haml within layouts/application (4.9ms)
|
3105
|
+
Completed 200 OK in 81ms (Views: 79.4ms | ActiveRecord: 0.3ms)
|
3106
|
+
|
3107
|
+
|
3108
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
|
3109
|
+
Served asset /application.css - 304 Not Modified (7ms)
|
3110
|
+
|
3111
|
+
|
3112
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
|
3113
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
3114
|
+
|
3115
|
+
|
3116
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
|
3117
|
+
Served asset /jquery_ujs.js - 304 Not Modified (5ms)
|
3118
|
+
|
3119
|
+
|
3120
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 14:55:52 -0400
|
3121
|
+
Served asset /application.js - 304 Not Modified (10ms)
|
3122
|
+
|
3123
|
+
|
3124
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
|
3125
|
+
Processing by AccountsController#update as HTML
|
3126
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"label"=>"Some Label", "public"=>"0", "id"=>"1"}, "1"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa643034030 @original_filename="zendesk.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][1][attachment]\"; filename=\"zendesk.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-27815-mbkqc0>>}}}, "button"=>"", "id"=>"1"}
|
3127
|
+
[1m[36mAccount Load (0.6ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3128
|
+
[1m[35mModulate::Document Load (0.3ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account' AND `modulate_documents`.`id` IN (1)
|
3129
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3130
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3131
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3132
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-zendesk.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3133
|
+
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-zendesk.txt', 'Dummy::Account', 'text/plain', '2013-03-26 19:14:38', 'zendesk.txt', '1-zendesk.txt', NULL, 0, '2013-03-26 19:14:38')[0m
|
3134
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3135
|
+
Redirected to http://modulate.local/accounts
|
3136
|
+
Completed 302 Found in 260ms (ActiveRecord: 9.5ms)
|
3137
|
+
|
3138
|
+
|
3139
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
|
3140
|
+
Processing by AccountsController#index as HTML
|
3141
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
3142
|
+
Rendered accounts/index.html.haml within layouts/application (40.0ms)
|
3143
|
+
Completed 200 OK in 75ms (Views: 72.9ms | ActiveRecord: 0.3ms)
|
3144
|
+
|
3145
|
+
|
3146
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
|
3147
|
+
Served asset /application.css - 304 Not Modified (4ms)
|
3148
|
+
|
3149
|
+
|
3150
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
|
3151
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
3152
|
+
|
3153
|
+
|
3154
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
|
3155
|
+
Served asset /jquery_ujs.js - 304 Not Modified (3ms)
|
3156
|
+
|
3157
|
+
|
3158
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
|
3159
|
+
Served asset /application.js - 304 Not Modified (2ms)
|
3160
|
+
|
3161
|
+
|
3162
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:40 -0400
|
3163
|
+
Processing by AccountsController#show as HTML
|
3164
|
+
Parameters: {"id"=>"1"}
|
3165
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3166
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3167
|
+
[1m[35mModulate::Document Load (0.3ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3168
|
+
Rendered accounts/_modulate_account_documents.html.haml (42.4ms)
|
3169
|
+
Rendered accounts/_modulate_attachments.html.haml (192.8ms)
|
3170
|
+
Rendered accounts/show.html.erb within layouts/application (199.4ms)
|
3171
|
+
Completed 200 OK in 208ms (Views: 205.0ms | ActiveRecord: 0.9ms)
|
3172
|
+
|
3173
|
+
|
3174
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
|
3175
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3176
|
+
|
3177
|
+
|
3178
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
|
3179
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3180
|
+
|
3181
|
+
|
3182
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
|
3183
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3184
|
+
|
3185
|
+
|
3186
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
|
3187
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3188
|
+
Connecting to database specified by database.yml
|
3189
|
+
|
3190
|
+
|
3191
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:45 -0400
|
3192
|
+
Processing by AccountsController#show as HTML
|
3193
|
+
Parameters: {"id"=>"1"}
|
3194
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3195
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3196
|
+
[1m[36mModulate::Document Load (0.2ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3197
|
+
Rendered accounts/_modulate_account_documents.html.haml (133.6ms)
|
3198
|
+
Rendered accounts/_modulate_attachments.html.haml (235.1ms)
|
3199
|
+
Rendered accounts/show.html.erb within layouts/application (243.6ms)
|
3200
|
+
Completed 200 OK in 365ms (Views: 310.9ms | ActiveRecord: 5.5ms)
|
3201
|
+
|
3202
|
+
|
3203
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
|
3204
|
+
|
3205
|
+
|
3206
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
|
3207
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3208
|
+
|
3209
|
+
|
3210
|
+
Served asset /application.css - 304 Not Modified (4ms)
|
3211
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
|
3212
|
+
|
3213
|
+
|
3214
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
|
3215
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3216
|
+
Served asset /application.js - 304 Not Modified (7ms)
|
3217
|
+
|
3218
|
+
|
3219
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
|
3220
|
+
Processing by AccountsController#show as HTML
|
3221
|
+
Parameters: {"id"=>"1"}
|
3222
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3223
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3224
|
+
[1m[36mModulate::Document Load (0.2ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3225
|
+
Rendered accounts/_modulate_account_documents.html.haml (134.0ms)
|
3226
|
+
Rendered accounts/_modulate_attachments.html.haml (230.2ms)
|
3227
|
+
Rendered accounts/show.html.erb within layouts/application (239.2ms)
|
3228
|
+
Completed 200 OK in 354ms (Views: 304.9ms | ActiveRecord: 5.5ms)
|
3229
|
+
|
3230
|
+
|
3231
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
|
3232
|
+
|
3233
|
+
|
3234
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
|
3235
|
+
|
3236
|
+
|
3237
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
|
3238
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
3239
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3240
|
+
Served asset /application.css - 304 Not Modified (6ms)
|
3241
|
+
|
3242
|
+
|
3243
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
|
3244
|
+
Served asset /application.js - 304 Not Modified (7ms)
|
3245
|
+
|
3246
|
+
|
3247
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
|
3248
|
+
Processing by AccountsController#show as HTML
|
3249
|
+
Parameters: {"id"=>"1"}
|
3250
|
+
[1m[35mAccount Load (0.5ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3251
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3252
|
+
[1m[35mModulate::Document Load (0.2ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3253
|
+
Rendered accounts/_modulate_account_documents.html.haml (9.9ms)
|
3254
|
+
Rendered accounts/_modulate_attachments.html.haml (21.4ms)
|
3255
|
+
Rendered accounts/show.html.erb within layouts/application (22.5ms)
|
3256
|
+
Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 1.0ms)
|
3257
|
+
|
3258
|
+
|
3259
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
|
3260
|
+
Served asset /jquery.js - 304 Not Modified (8ms)
|
3261
|
+
|
3262
|
+
|
3263
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
|
3264
|
+
Served asset /jquery_ujs.js - 304 Not Modified (6ms)
|
3265
|
+
|
3266
|
+
|
3267
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
|
3268
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3269
|
+
|
3270
|
+
|
3271
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
|
3272
|
+
Served asset /application.css - 304 Not Modified (1ms)
|
3273
|
+
Connecting to database specified by database.yml
|
3274
|
+
Connecting to database specified by database.yml
|
3275
|
+
|
3276
|
+
|
3277
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:25:19 -0400
|
3278
|
+
Processing by AccountsController#show as HTML
|
3279
|
+
Parameters: {"id"=>"1"}
|
3280
|
+
[1m[36mAccount Load (0.7ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3281
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3282
|
+
Rendered accounts/_modulate_account_documents.html.haml (3.1ms)
|
3283
|
+
Rendered accounts/_modulate_attachments.html.haml (52.4ms)
|
3284
|
+
Rendered accounts/show.html.erb within layouts/application (53.3ms)
|
3285
|
+
Completed 200 OK in 62ms (Views: 58.8ms | ActiveRecord: 1.0ms)
|
3286
|
+
|
3287
|
+
|
3288
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:25:19 -0400
|
3289
|
+
Served asset /application.css - 304 Not Modified (3ms)
|
3290
|
+
|
3291
|
+
|
3292
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:19 -0400
|
3293
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3294
|
+
|
3295
|
+
|
3296
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:20 -0400
|
3297
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3298
|
+
|
3299
|
+
|
3300
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:20 -0400
|
3301
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3302
|
+
|
3303
|
+
|
3304
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:25:29 -0400
|
3305
|
+
Processing by AccountsController#update as HTML
|
3306
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa64522a4f0 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][0][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42131-x5nk8a>>}}}, "button"=>"", "id"=>"1"}
|
3307
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3308
|
+
[1m[35mModulate::Document Load (0.3ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3309
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
3310
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3311
|
+
[1m[36mModulate::Document Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1[0m
|
3312
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:25:30', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:25:30')
|
3313
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
3314
|
+
Redirected to http://modulate.local/accounts
|
3315
|
+
Completed 302 Found in 259ms (ActiveRecord: 9.6ms)
|
3316
|
+
|
3317
|
+
|
3318
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
|
3319
|
+
Processing by AccountsController#index as HTML
|
3320
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts`
|
3321
|
+
Rendered accounts/index.html.haml within layouts/application (5.6ms)
|
3322
|
+
Completed 200 OK in 82ms (Views: 79.3ms | ActiveRecord: 0.3ms)
|
3323
|
+
|
3324
|
+
|
3325
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
|
3326
|
+
|
3327
|
+
|
3328
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
|
3329
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3330
|
+
Served asset /application.css - 304 Not Modified (4ms)
|
3331
|
+
|
3332
|
+
|
3333
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
|
3334
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3335
|
+
|
3336
|
+
|
3337
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
|
3338
|
+
Served asset /application.js - 304 Not Modified (20ms)
|
3339
|
+
|
3340
|
+
|
3341
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:25:49 -0400
|
3342
|
+
Processing by AccountsController#show as HTML
|
3343
|
+
Parameters: {"id"=>"1"}
|
3344
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3345
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3346
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3347
|
+
Rendered accounts/_modulate_account_documents.html.haml (132.2ms)
|
3348
|
+
Rendered accounts/_modulate_attachments.html.haml (253.5ms)
|
3349
|
+
Rendered accounts/show.html.erb within layouts/application (297.3ms)
|
3350
|
+
Completed 200 OK in 414ms (Views: 329.2ms | ActiveRecord: 5.6ms)
|
3351
|
+
|
3352
|
+
|
3353
|
+
|
3354
|
+
|
3355
|
+
|
3356
|
+
|
3357
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
|
3358
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
|
3359
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
3360
|
+
|
3361
|
+
|
3362
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
|
3363
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3364
|
+
Served asset /application.js - 304 Not Modified (1ms)
|
3365
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
|
3366
|
+
Served asset /application.css - 304 Not Modified (4ms)
|
3367
|
+
|
3368
|
+
|
3369
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:27:59 -0400
|
3370
|
+
Processing by AccountsController#show as HTML
|
3371
|
+
Parameters: {"id"=>"1"}
|
3372
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3373
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3374
|
+
Rendered accounts/_modulate_account_documents.html.haml (95.7ms)
|
3375
|
+
Rendered accounts/_modulate_attachments.html.haml (236.9ms)
|
3376
|
+
Rendered accounts/show.html.erb within layouts/application (280.4ms)
|
3377
|
+
Completed 200 OK in 398ms (Views: 314.6ms | ActiveRecord: 5.7ms)
|
3378
|
+
|
3379
|
+
|
3380
|
+
|
3381
|
+
|
3382
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
|
3383
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
|
3384
|
+
|
3385
|
+
|
3386
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
|
3387
|
+
|
3388
|
+
|
3389
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
|
3390
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3391
|
+
Served asset /application.css - 304 Not Modified (3ms)
|
3392
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3393
|
+
Served asset /jquery_ujs.js - 304 Not Modified (17ms)
|
3394
|
+
|
3395
|
+
|
3396
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
|
3397
|
+
Processing by AccountsController#update as HTML
|
3398
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa644a3ca40 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][0][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42137-eyac6j>>}}}, "button"=>"", "id"=>"1"}
|
3399
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3400
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3401
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3402
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3403
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3404
|
+
[1m[36mSQL (3.5ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:28:05', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:28:05')[0m
|
3405
|
+
[1m[35m (0.5ms)[0m COMMIT
|
3406
|
+
Redirected to http://modulate.local/accounts
|
3407
|
+
Completed 302 Found in 195ms (ActiveRecord: 9.8ms)
|
3408
|
+
|
3409
|
+
|
3410
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
|
3411
|
+
Processing by AccountsController#index as HTML
|
3412
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
3413
|
+
Rendered accounts/index.html.haml within layouts/application (1.0ms)
|
3414
|
+
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms)
|
3415
|
+
|
3416
|
+
|
3417
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
|
3418
|
+
|
3419
|
+
|
3420
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
|
3421
|
+
|
3422
|
+
|
3423
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
|
3424
|
+
|
3425
|
+
|
3426
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
|
3427
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3428
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3429
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3430
|
+
Served asset /jquery_ujs.js - 304 Not Modified (5ms)
|
3431
|
+
|
3432
|
+
|
3433
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:28:07 -0400
|
3434
|
+
Processing by AccountsController#show as HTML
|
3435
|
+
Parameters: {"id"=>"1"}
|
3436
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3437
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3438
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3439
|
+
Rendered accounts/_modulate_account_documents.html.haml (10.3ms)
|
3440
|
+
Rendered accounts/_modulate_attachments.html.haml (21.9ms)
|
3441
|
+
Rendered accounts/show.html.erb within layouts/application (23.1ms)
|
3442
|
+
Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.8ms)
|
3443
|
+
|
3444
|
+
|
3445
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
|
3446
|
+
|
3447
|
+
|
3448
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
|
3449
|
+
|
3450
|
+
|
3451
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
|
3452
|
+
|
3453
|
+
|
3454
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3455
|
+
Served asset /jquery.js - 304 Not Modified (6ms)
|
3456
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
|
3457
|
+
Served asset /jquery_ujs.js - 304 Not Modified (5ms)
|
3458
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3459
|
+
|
3460
|
+
|
3461
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
|
3462
|
+
Processing by AccountsController#show as HTML
|
3463
|
+
Parameters: {"id"=>"1"}
|
3464
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3465
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3466
|
+
[1m[36mModulate::Document Load (0.2ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3467
|
+
Rendered accounts/_modulate_account_documents.html.haml (44.2ms)
|
3468
|
+
Rendered accounts/_modulate_attachments.html.haml (59.7ms)
|
3469
|
+
Rendered accounts/show.html.erb within layouts/application (60.7ms)
|
3470
|
+
Completed 200 OK in 79ms (Views: 64.3ms | ActiveRecord: 5.4ms)
|
3471
|
+
|
3472
|
+
|
3473
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
|
3474
|
+
|
3475
|
+
|
3476
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
|
3477
|
+
|
3478
|
+
|
3479
|
+
|
3480
|
+
|
3481
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
|
3482
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3483
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3484
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
|
3485
|
+
Served asset /application.js - 304 Not Modified (8ms)
|
3486
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3487
|
+
|
3488
|
+
|
3489
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
|
3490
|
+
Processing by AccountsController#show as HTML
|
3491
|
+
Parameters: {"id"=>"1"}
|
3492
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3493
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3494
|
+
[1m[35mModulate::Document Load (0.3ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3495
|
+
Rendered accounts/_modulate_account_documents.html.haml (47.9ms)
|
3496
|
+
Rendered accounts/_modulate_attachments.html.haml (64.4ms)
|
3497
|
+
Rendered accounts/show.html.erb within layouts/application (65.5ms)
|
3498
|
+
Completed 200 OK in 87ms (Views: 70.1ms | ActiveRecord: 6.1ms)
|
3499
|
+
|
3500
|
+
|
3501
|
+
|
3502
|
+
|
3503
|
+
|
3504
|
+
|
3505
|
+
|
3506
|
+
|
3507
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
|
3508
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
|
3509
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
|
3510
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
|
3511
|
+
Served asset /application.css - 304 Not Modified (5ms)
|
3512
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3513
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3514
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3515
|
+
|
3516
|
+
|
3517
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
|
3518
|
+
Processing by AccountsController#show as HTML
|
3519
|
+
Parameters: {"id"=>"1"}
|
3520
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3521
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3522
|
+
Rendered accounts/_modulate_account_documents.html.haml (2.3ms)
|
3523
|
+
Rendered accounts/_modulate_attachments.html.haml (14.0ms)
|
3524
|
+
Rendered accounts/show.html.erb within layouts/application (15.0ms)
|
3525
|
+
Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.6ms)
|
3526
|
+
|
3527
|
+
|
3528
|
+
|
3529
|
+
|
3530
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
|
3531
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
|
3532
|
+
|
3533
|
+
|
3534
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3535
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
|
3536
|
+
|
3537
|
+
|
3538
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
|
3539
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3540
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3541
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3542
|
+
|
3543
|
+
|
3544
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
|
3545
|
+
Processing by AccountsController#update as HTML
|
3546
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa6428d8160 @original_filename="cavs_report.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cavs_report.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42147-16cs06>>}, {"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa6428d7cd8 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42147-kkywwg>>}]}, "button"=>"", "id"=>"1"}
|
3547
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3548
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3549
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3550
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3551
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cavs_report.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3552
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3553
|
+
[1m[35mModulate::Document Exists (0.4ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3554
|
+
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cavs_report.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:33:25', 'cavs_report.txt', '1-cavs_report.txt', NULL, 0, '2013-03-26 20:33:25')[0m
|
3555
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:33:25', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:33:25')
|
3556
|
+
[1m[36m (10.2ms)[0m [1mCOMMIT[0m
|
3557
|
+
Redirected to http://modulate.local/accounts
|
3558
|
+
Completed 302 Found in 190ms (ActiveRecord: 18.9ms)
|
3559
|
+
|
3560
|
+
|
3561
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
|
3562
|
+
Processing by AccountsController#index as HTML
|
3563
|
+
[1m[35mAccount Load (0.5ms)[0m SELECT `accounts`.* FROM `accounts`
|
3564
|
+
Rendered accounts/index.html.haml within layouts/application (1.0ms)
|
3565
|
+
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms)
|
3566
|
+
|
3567
|
+
|
3568
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
|
3569
|
+
|
3570
|
+
|
3571
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
|
3572
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3573
|
+
|
3574
|
+
|
3575
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
|
3576
|
+
|
3577
|
+
|
3578
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
|
3579
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3580
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3581
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3582
|
+
|
3583
|
+
|
3584
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
|
3585
|
+
Processing by AccountsController#show as HTML
|
3586
|
+
Parameters: {"id"=>"1"}
|
3587
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3588
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3589
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3590
|
+
Rendered accounts/_modulate_account_documents.html.haml (11.2ms)
|
3591
|
+
Rendered accounts/_modulate_attachments.html.haml (27.9ms)
|
3592
|
+
Rendered accounts/show.html.erb within layouts/application (29.0ms)
|
3593
|
+
Completed 200 OK in 38ms (Views: 34.9ms | ActiveRecord: 0.8ms)
|
3594
|
+
|
3595
|
+
|
3596
|
+
|
3597
|
+
|
3598
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
|
3599
|
+
|
3600
|
+
|
3601
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
|
3602
|
+
|
3603
|
+
|
3604
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
|
3605
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3606
|
+
Served asset /jquery.js - 304 Not Modified (6ms)
|
3607
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3608
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
|
3609
|
+
Served asset /application.js - 304 Not Modified (8ms)
|
3610
|
+
|
3611
|
+
|
3612
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
|
3613
|
+
Processing by AccountsController#show as HTML
|
3614
|
+
Parameters: {"id"=>"1"}
|
3615
|
+
[1m[36mAccount Load (1.9ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3616
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3617
|
+
Rendered accounts/_modulate_account_documents.html.haml (2.1ms)
|
3618
|
+
Rendered accounts/_modulate_attachments.html.haml (14.8ms)
|
3619
|
+
Rendered accounts/show.html.erb within layouts/application (15.7ms)
|
3620
|
+
Completed 200 OK in 26ms (Views: 21.5ms | ActiveRecord: 2.2ms)
|
3621
|
+
|
3622
|
+
|
3623
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
|
3624
|
+
|
3625
|
+
|
3626
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
|
3627
|
+
|
3628
|
+
|
3629
|
+
|
3630
|
+
|
3631
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
|
3632
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
|
3633
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3634
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3635
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3636
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3637
|
+
Connecting to database specified by database.yml
|
3638
|
+
|
3639
|
+
|
3640
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
|
3641
|
+
Processing by AccountsController#show as HTML
|
3642
|
+
Parameters: {"id"=>"1"}
|
3643
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3644
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3645
|
+
Rendered accounts/_modulate_account_documents.html.haml (25.9ms)
|
3646
|
+
Rendered accounts/_modulate_attachments.html.haml (61.7ms)
|
3647
|
+
Rendered accounts/show.html.erb within layouts/application (62.7ms)
|
3648
|
+
Completed 200 OK in 82ms (Views: 67.6ms | ActiveRecord: 4.6ms)
|
3649
|
+
|
3650
|
+
|
3651
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
|
3652
|
+
|
3653
|
+
|
3654
|
+
|
3655
|
+
|
3656
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
|
3657
|
+
|
3658
|
+
|
3659
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
|
3660
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
|
3661
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3662
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3663
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3664
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3665
|
+
|
3666
|
+
|
3667
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
|
3668
|
+
Processing by AccountsController#update as HTML
|
3669
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa642eb8468 @original_filename="cavs_report.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cavs_report.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-39086-yzuuz8>>}, {"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa642eb5588 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-39086-17gtxmw>>}]}, "button"=>"", "id"=>"1"}
|
3670
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3671
|
+
[1m[36mModulate::Document Load (0.4ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3672
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3673
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3674
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cavs_report.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3675
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3676
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3677
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cavs_report.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:36:06', 'cavs_report.txt', '1-cavs_report.txt', NULL, 0, '2013-03-26 20:36:06')[0m
|
3678
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:36:06', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:36:06')
|
3679
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
3680
|
+
Redirected to http://modulate.local/accounts
|
3681
|
+
Completed 302 Found in 183ms (ActiveRecord: 9.8ms)
|
3682
|
+
|
3683
|
+
|
3684
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
|
3685
|
+
Processing by AccountsController#index as HTML
|
3686
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts`
|
3687
|
+
Rendered accounts/index.html.haml within layouts/application (1.0ms)
|
3688
|
+
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms)
|
3689
|
+
|
3690
|
+
|
3691
|
+
|
3692
|
+
|
3693
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
|
3694
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
|
3695
|
+
|
3696
|
+
|
3697
|
+
|
3698
|
+
|
3699
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
|
3700
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
|
3701
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3702
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3703
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3704
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3705
|
+
|
3706
|
+
|
3707
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
|
3708
|
+
Processing by AccountsController#show as HTML
|
3709
|
+
Parameters: {"id"=>"1"}
|
3710
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3711
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3712
|
+
[1m[36mModulate::Document Load (0.5ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3713
|
+
Rendered accounts/_modulate_account_documents.html.haml (17.7ms)
|
3714
|
+
Rendered accounts/_modulate_attachments.html.haml (33.2ms)
|
3715
|
+
Rendered accounts/show.html.erb within layouts/application (34.3ms)
|
3716
|
+
Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 1.1ms)
|
3717
|
+
|
3718
|
+
|
3719
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
|
3720
|
+
|
3721
|
+
|
3722
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
|
3723
|
+
|
3724
|
+
|
3725
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
|
3726
|
+
|
3727
|
+
|
3728
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
|
3729
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3730
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3731
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3732
|
+
Served asset /jquery.js - 304 Not Modified (1ms)
|
3733
|
+
|
3734
|
+
|
3735
|
+
Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
|
3736
|
+
Processing by AccountsController#update as HTML
|
3737
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"label"=>"Label 1", "public"=>"0", "id"=>"7"}, "1"=>{"label"=>"Label 2", "public"=>"1", "id"=>"8"}}}, "button"=>"", "id"=>"1"}
|
3738
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3739
|
+
[1m[35mModulate::Document Load (0.4ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account' AND `modulate_documents`.`id` IN (7, 8)
|
3740
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3741
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3742
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3743
|
+
[1m[35mModulate::Document Exists (0.4ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cavs_report.txt' AND `modulate_documents`.`id` != 7 AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3744
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3745
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`id` != 8 AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
3746
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `modulate_documents` SET `label` = 'Label 1', `updated_at` = '2013-03-26 20:36:18' WHERE `modulate_documents`.`id` = 7[0m
|
3747
|
+
[1m[35m (0.3ms)[0m UPDATE `modulate_documents` SET `label` = 'Label 2', `public` = 1, `updated_at` = '2013-03-26 20:36:18' WHERE `modulate_documents`.`id` = 8
|
3748
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
3749
|
+
Redirected to http://modulate.local/accounts
|
3750
|
+
Completed 302 Found in 124ms (ActiveRecord: 7.6ms)
|
3751
|
+
|
3752
|
+
|
3753
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
|
3754
|
+
Processing by AccountsController#index as HTML
|
3755
|
+
[1m[35mAccount Load (0.8ms)[0m SELECT `accounts`.* FROM `accounts`
|
3756
|
+
Rendered accounts/index.html.haml within layouts/application (0.1ms)
|
3757
|
+
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.8ms)
|
3758
|
+
|
3759
|
+
|
3760
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
|
3761
|
+
|
3762
|
+
|
3763
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
|
3764
|
+
|
3765
|
+
|
3766
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
|
3767
|
+
|
3768
|
+
|
3769
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
|
3770
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3771
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3772
|
+
Served asset /jquery_ujs.js - 304 Not Modified (2ms)
|
3773
|
+
Served asset /application.js - 304 Not Modified (8ms)
|
3774
|
+
|
3775
|
+
|
3776
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
|
3777
|
+
Processing by AccountsController#show as HTML
|
3778
|
+
Parameters: {"id"=>"1"}
|
3779
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3780
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3781
|
+
[1m[35mModulate::Document Load (0.4ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3782
|
+
Rendered accounts/_modulate_account_documents.html.haml (10.3ms)
|
3783
|
+
Rendered accounts/_modulate_attachments.html.haml (22.6ms)
|
3784
|
+
Rendered accounts/show.html.erb within layouts/application (23.7ms)
|
3785
|
+
Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 1.1ms)
|
3786
|
+
|
3787
|
+
|
3788
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
|
3789
|
+
|
3790
|
+
|
3791
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
|
3792
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3793
|
+
|
3794
|
+
|
3795
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
|
3796
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
3797
|
+
|
3798
|
+
|
3799
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
|
3800
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3801
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3802
|
+
|
3803
|
+
|
3804
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
|
3805
|
+
Processing by AccountsController#show as HTML
|
3806
|
+
Parameters: {"id"=>"1"}
|
3807
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
3808
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3809
|
+
[1m[36mModulate::Document Load (0.2ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3810
|
+
Rendered accounts/_modulate_account_documents.html.haml (55.4ms)
|
3811
|
+
Rendered accounts/_modulate_attachments.html.haml (67.3ms)
|
3812
|
+
Rendered accounts/show.html.erb within layouts/application (69.5ms)
|
3813
|
+
Completed 200 OK in 78ms (Views: 75.3ms | ActiveRecord: 0.8ms)
|
3814
|
+
|
3815
|
+
|
3816
|
+
|
3817
|
+
|
3818
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
|
3819
|
+
|
3820
|
+
|
3821
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
|
3822
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
|
3823
|
+
|
3824
|
+
|
3825
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
|
3826
|
+
Served asset /jquery_ujs.js - 200 OK (0ms)
|
3827
|
+
Served asset /jquery.js - 200 OK (1ms)
|
3828
|
+
Served asset /application.js - 200 OK (0ms)
|
3829
|
+
Served asset /application.css - 200 OK (0ms)
|
3830
|
+
|
3831
|
+
|
3832
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
|
3833
|
+
Processing by AccountsController#show as HTML
|
3834
|
+
Parameters: {"id"=>"1"}
|
3835
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
|
3836
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
3837
|
+
[1m[35mModulate::Document Load (0.2ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
3838
|
+
Rendered accounts/_modulate_account_documents.html.haml (9.6ms)
|
3839
|
+
Rendered accounts/_modulate_attachments.html.haml (21.0ms)
|
3840
|
+
Rendered accounts/show.html.erb within layouts/application (22.1ms)
|
3841
|
+
Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 1.0ms)
|
3842
|
+
|
3843
|
+
|
3844
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
|
3845
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
3846
|
+
|
3847
|
+
|
3848
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
|
3849
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
3850
|
+
|
3851
|
+
|
3852
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
|
3853
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
3854
|
+
|
3855
|
+
|
3856
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
|
3857
|
+
Served asset /application.js - 304 Not Modified (1ms)
|
3858
|
+
Connecting to database specified by database.yml
|
data/spec/dummy/log/test.log
CHANGED
@@ -156,3 +156,93 @@ Processing by AccountsController#index as HTML
|
|
156
156
|
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
157
157
|
Rendered accounts/index.html.haml within layouts/application (1.2ms)
|
158
158
|
Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.3ms)
|
159
|
+
Connecting to database specified by database.yml
|
160
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
161
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-03-26 20:29:03', 'test_account', '2013-03-26 20:29:03')
|
162
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
163
|
+
Started GET "/accounts/28" for 127.0.0.1 at 2013-03-26 16:29:04 -0400
|
164
|
+
Processing by AccountsController#show as HTML
|
165
|
+
Parameters: {"id"=>"28"}
|
166
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1
|
167
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 28 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
168
|
+
Rendered accounts/_modulate_account_documents.html.haml (101.0ms)
|
169
|
+
Rendered accounts/_modulate_attachments.html.haml (269.4ms)
|
170
|
+
Rendered accounts/show.html.erb within layouts/application (279.3ms)
|
171
|
+
Completed 200 OK in 304ms (Views: 294.6ms | ActiveRecord: 3.0ms)
|
172
|
+
Started PUT "/accounts/28" for 127.0.0.1 at 2013-03-26 16:29:04 -0400
|
173
|
+
Processing by AccountsController#update as HTML
|
174
|
+
Parameters: {"utf8"=>"✓", "account"=>{"modulate_documents_attributes"=>{"0"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fc96ecdd478 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][0][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130326-42242-1rkmz9j>>}}}, "button"=>"", "id"=>"28"}
|
175
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1
|
176
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 28 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
177
|
+
[1m[35m (0.1ms)[0m BEGIN
|
178
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1[0m
|
179
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '28-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
180
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (28, 'Account', 1, '28-test.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:29:56', 'test.txt', '28-test.txt', NULL, 0, '2013-03-26 20:29:56')[0m
|
181
|
+
[1m[35m (0.5ms)[0m COMMIT
|
182
|
+
Redirected to http://www.example.com/accounts
|
183
|
+
Completed 302 Found in 51735ms (ActiveRecord: 1.9ms)
|
184
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:29:56 -0400
|
185
|
+
Processing by AccountsController#index as HTML
|
186
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
187
|
+
Rendered accounts/index.html.haml within layouts/application (1.4ms)
|
188
|
+
Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.3ms)
|
189
|
+
Connecting to database specified by database.yml
|
190
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
191
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-03-26 20:37:24', 'test_account', '2013-03-26 20:37:24')
|
192
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
193
|
+
Started GET "/accounts/29" for 127.0.0.1 at 2013-03-26 16:37:24 -0400
|
194
|
+
Processing by AccountsController#show as HTML
|
195
|
+
Parameters: {"id"=>"29"}
|
196
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1
|
197
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 29 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
198
|
+
Rendered accounts/_modulate_account_documents.html.haml (102.1ms)
|
199
|
+
Rendered accounts/_modulate_attachments.html.haml (272.8ms)
|
200
|
+
Rendered accounts/show.html.erb within layouts/application (281.9ms)
|
201
|
+
Completed 200 OK in 357ms (Views: 297.5ms | ActiveRecord: 3.0ms)
|
202
|
+
Started PUT "/accounts/29" for 127.0.0.1 at 2013-03-26 16:37:25 -0400
|
203
|
+
Processing by AccountsController#update as HTML
|
204
|
+
Parameters: {"utf8"=>"✓", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007faa366e4a00 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130326-42672-1mupt3r>>}]}, "button"=>"", "id"=>"29"}
|
205
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1
|
206
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 29 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
207
|
+
[1m[35m (0.1ms)[0m BEGIN
|
208
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1[0m
|
209
|
+
[1m[35mModulate::Document Exists (0.4ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '29-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
210
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (29, 'Account', 1, '29-test.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:37:25', 'test.txt', '29-test.txt', NULL, 0, '2013-03-26 20:37:25')[0m
|
211
|
+
[1m[35m (0.5ms)[0m COMMIT
|
212
|
+
Redirected to http://www.example.com/accounts
|
213
|
+
Completed 302 Found in 108ms (ActiveRecord: 1.8ms)
|
214
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:37:25 -0400
|
215
|
+
Processing by AccountsController#index as HTML
|
216
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
217
|
+
Rendered accounts/index.html.haml within layouts/application (1.2ms)
|
218
|
+
Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.3ms)
|
219
|
+
Connecting to database specified by database.yml
|
220
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
221
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-03-27 16:57:32', 'test_account', '2013-03-27 16:57:32')
|
222
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
223
|
+
Started GET "/accounts/30" for 127.0.0.1 at 2013-03-27 12:57:32 -0400
|
224
|
+
Processing by AccountsController#show as HTML
|
225
|
+
Parameters: {"id"=>"30"}
|
226
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1
|
227
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 30 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
228
|
+
Rendered accounts/_modulate_account_documents.html.haml (64.0ms)
|
229
|
+
Rendered accounts/_modulate_attachments.html.haml (327.2ms)
|
230
|
+
Rendered accounts/show.html.erb within layouts/application (338.7ms)
|
231
|
+
Completed 200 OK in 432ms (Views: 412.4ms | ActiveRecord: 2.9ms)
|
232
|
+
Started PUT "/accounts/30" for 127.0.0.1 at 2013-03-27 12:57:33 -0400
|
233
|
+
Processing by AccountsController#update as HTML
|
234
|
+
Parameters: {"utf8"=>"✓", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fae95aa4ce0 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130327-83727-up8zzj>>}]}, "button"=>"", "id"=>"30"}
|
235
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1
|
236
|
+
[1m[36mModulate::Document Load (0.3ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 30 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
237
|
+
[1m[35m (0.1ms)[0m BEGIN
|
238
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1[0m
|
239
|
+
[1m[35mModulate::Document Exists (0.3ms)[0m SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '30-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
|
240
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (30, 'Account', 1, '30-test.txt', 'Dummy::Account', 'text/plain', '2013-03-27 16:57:33', 'test.txt', '30-test.txt', NULL, 0, '2013-03-27 16:57:33')[0m
|
241
|
+
[1m[35m (0.4ms)[0m COMMIT
|
242
|
+
Redirected to http://www.example.com/accounts
|
243
|
+
Completed 302 Found in 67ms (ActiveRecord: 1.8ms)
|
244
|
+
Started GET "/accounts" for 127.0.0.1 at 2013-03-27 12:57:33 -0400
|
245
|
+
Processing by AccountsController#index as HTML
|
246
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT `accounts`.* FROM `accounts` [0m
|
247
|
+
Rendered accounts/index.html.haml within layouts/application (1.2ms)
|
248
|
+
Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.3ms)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modulate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: carrierwave-riak
|
@@ -289,7 +289,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
289
289
|
version: '0'
|
290
290
|
segments:
|
291
291
|
- 0
|
292
|
-
hash: -
|
292
|
+
hash: -3121422691208428004
|
293
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
294
294
|
none: false
|
295
295
|
requirements:
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
version: '0'
|
299
299
|
segments:
|
300
300
|
- 0
|
301
|
-
hash: -
|
301
|
+
hash: -3121422691208428004
|
302
302
|
requirements: []
|
303
303
|
rubyforge_project:
|
304
304
|
rubygems_version: 1.8.24
|