disclaimer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/disclaimer/document.rb +18 -2
- data/lib/disclaimer/version.rb +6 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/seeds.rb +5 -0
- data/test/dummy/db/seeds/disclaimer/documents.yml +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +440 -0
- data/test/dummy/log/test.log +1329 -0
- data/test/dummy/tmp/cache/assets/B9D/BB0/sprockets%2Fc3340956015865527b738281d0798842 +0 -0
- data/test/dummy/tmp/cache/assets/CD4/F20/sprockets%2F9705276958dc30aad02ae1f4618a60a4 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D6A/080/sprockets%2Fb083da81ad739ec14c03d78b63c22d9f +0 -0
- data/test/dummy/tmp/cache/assets/DB4/B10/sprockets%2F1419cefd434468f9dfea571aa7ee59f7 +0 -0
- data/test/dummy/tmp/cache/assets/DC6/910/sprockets%2Faad8dad748c771644d1bbbcf02409fe2 +0 -0
- data/test/dummy/tmp/cache/assets/DE1/2B0/sprockets%2Fdca152daab7ddab59235356c1d2b21db +0 -0
- data/test/dummy/tmp/cache/assets/DFB/DF0/sprockets%2Fa1fb1cc09fd766dcc9e2b9d4a9421db4 +0 -0
- data/test/dummy/tmp/cache/assets/E22/0C0/sprockets%2F72c5c1adba8375dda425a7bfb5ba7c4f +0 -0
- data/test/dummy/tmp/cache/assets/E2C/8D0/sprockets%2F234ff42c359a2beddfb9d10ee75aef3d +0 -0
- metadata +49 -4
@@ -4,7 +4,7 @@ module Disclaimer
|
|
4
4
|
|
5
5
|
before_save :underscore_name
|
6
6
|
|
7
|
-
has_many :segment_holders, :uniq => true
|
7
|
+
has_many :segment_holders, :uniq => true, :order => 'position'
|
8
8
|
has_many :segments, :through => :segment_holders, :uniq => true
|
9
9
|
accepts_nested_attributes_for :segments
|
10
10
|
|
@@ -35,7 +35,23 @@ module Disclaimer
|
|
35
35
|
def act_as_list_methods
|
36
36
|
@act_as_list_methods ||= ActiveRecord::Acts::List::InstanceMethods.instance_methods
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
|
+
# This method, together with method missing, is used to allow segments
|
40
|
+
# to be ordered within a document. It allows an acts_as_list method to be
|
41
|
+
# passed to the segment_holder holding a segment, so as to alter its position.
|
42
|
+
#
|
43
|
+
# For example:
|
44
|
+
# document.move_to_top document.segments.last
|
45
|
+
#
|
46
|
+
# will move the last segment so that it becomes the first within
|
47
|
+
# document.segments.
|
48
|
+
#
|
49
|
+
#
|
50
|
+
# The syntax is:
|
51
|
+
#
|
52
|
+
# document.<acts_as_list_method> <the_segment_to_be_moved>
|
53
|
+
#
|
54
|
+
# The segment must already belong to the document
|
39
55
|
def modify_via_segment_holder_acts_as_list_method(method, segment)
|
40
56
|
segment_holder = segment_holder_for(segment)
|
41
57
|
raise segment_not_associated_message(method, segment) unless segment_holder
|
data/lib/disclaimer/version.rb
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
module Disclaimer
|
2
|
-
VERSION = "0.1.
|
2
|
+
VERSION = "0.1.1"
|
3
3
|
end
|
4
4
|
|
5
5
|
# History
|
6
6
|
#
|
7
|
+
# 0.1.1 - Improves way segments are ordered within documents
|
8
|
+
# ----------------------------------------------------------
|
9
|
+
# Segment position should now respect segment_holder position.
|
10
|
+
# Also added seeds to test/dummy
|
11
|
+
#
|
7
12
|
# 0.1.0 - Moves app to beta
|
8
13
|
# -------------------------
|
9
14
|
# Makes app ready for beta release
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -21,3 +21,443 @@ Connecting to database specified by database.yml
|
|
21
21
|
[1m[36m (157.9ms)[0m [1mCREATE TABLE "disclaimer_segments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
22
22
|
[1m[35m (3.1ms)[0m SELECT version FROM "schema_migrations"
|
23
23
|
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
24
|
+
|
25
|
+
|
26
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:40:30 +0100
|
27
|
+
Connecting to database specified by database.yml
|
28
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
29
|
+
Processing by SampleController#index as HTML
|
30
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
31
|
+
Rendered sample/index.html.erb within layouts/application (9.6ms)
|
32
|
+
Compiled sample.css (0ms) (pid 21901)
|
33
|
+
Compiled application.css (40ms) (pid 21901)
|
34
|
+
Completed 200 OK in 90ms (Views: 89.3ms | ActiveRecord: 0.0ms)
|
35
|
+
|
36
|
+
|
37
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:40:32 +0100
|
38
|
+
Served asset /application.css - 200 OK (13ms)
|
39
|
+
|
40
|
+
|
41
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:40:32 +0100
|
42
|
+
Served asset /sample.css - 200 OK (10ms)
|
43
|
+
|
44
|
+
|
45
|
+
Started GET "/sample" for 127.0.0.1 at 2013-09-13 14:40:58 +0100
|
46
|
+
Processing by SampleController#index as HTML
|
47
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
48
|
+
Rendered sample/index.html.erb within layouts/application (0.2ms)
|
49
|
+
Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
50
|
+
|
51
|
+
|
52
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:41:06 +0100
|
53
|
+
Processing by SampleController#index as HTML
|
54
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
55
|
+
Rendered sample/index.html.erb within layouts/application (0.1ms)
|
56
|
+
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)
|
57
|
+
|
58
|
+
|
59
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:41:07 +0100
|
60
|
+
Served asset /application.css - 304 Not Modified (8ms)
|
61
|
+
|
62
|
+
|
63
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:41:07 +0100
|
64
|
+
Served asset /sample.css - 304 Not Modified (0ms)
|
65
|
+
|
66
|
+
|
67
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:41:47 +0100
|
68
|
+
Processing by SampleController#index as HTML
|
69
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
70
|
+
Rendered sample/index.html.erb within layouts/application (0.1ms)
|
71
|
+
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
72
|
+
|
73
|
+
|
74
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:41:47 +0100
|
75
|
+
Served asset /application.css - 200 OK (5ms)
|
76
|
+
|
77
|
+
|
78
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:41:47 +0100
|
79
|
+
Served asset /sample.css - 200 OK (0ms)
|
80
|
+
|
81
|
+
|
82
|
+
Started GET "/sample" for 127.0.0.1 at 2013-09-13 14:41:58 +0100
|
83
|
+
Processing by SampleController#index as HTML
|
84
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
85
|
+
Rendered sample/index.html.erb within layouts/application (0.1ms)
|
86
|
+
Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
|
87
|
+
|
88
|
+
|
89
|
+
Started GET "/admin" for 127.0.0.1 at 2013-09-13 14:42:33 +0100
|
90
|
+
|
91
|
+
ActionController::RoutingError (No route matches [GET] "/admin"):
|
92
|
+
actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
93
|
+
actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
94
|
+
railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
|
95
|
+
railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
|
96
|
+
actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
97
|
+
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
|
98
|
+
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
|
99
|
+
activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
100
|
+
rack (1.4.1) lib/rack/lock.rb:15:in `call'
|
101
|
+
actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
|
102
|
+
railties (3.2.8) lib/rails/engine.rb:479:in `call'
|
103
|
+
railties (3.2.8) lib/rails/application.rb:223:in `call'
|
104
|
+
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
|
105
|
+
railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
|
106
|
+
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
|
107
|
+
/home/rob/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
108
|
+
/home/rob/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
109
|
+
/home/rob/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
110
|
+
|
111
|
+
|
112
|
+
Rendered /home/rob/.rvm/gems/ruby-1.9.3-p448@disclaimer/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (3.8ms)
|
113
|
+
|
114
|
+
|
115
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:42:40 +0100
|
116
|
+
Processing by SampleController#index as HTML
|
117
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
118
|
+
Rendered sample/index.html.erb within layouts/application (0.1ms)
|
119
|
+
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)
|
120
|
+
Connecting to database specified by database.yml
|
121
|
+
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
122
|
+
[1m[35m (3.4ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
123
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("disclaimer_documents")[0m
|
124
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("disclaimer_segment_holders")
|
125
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("disclaimer_segments")[0m
|
126
|
+
Connecting to database specified by database.yml
|
127
|
+
[1m[36m (3.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
128
|
+
|
129
|
+
|
130
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:43:15 +0100
|
131
|
+
Connecting to database specified by database.yml
|
132
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
133
|
+
Processing by SampleController#index as HTML
|
134
|
+
No disclaimer displayed as unable to find Disclaimer::Document with name 'nil'
|
135
|
+
Rendered sample/index.html.erb within layouts/application (3.4ms)
|
136
|
+
Completed 200 OK in 78ms (Views: 77.3ms | ActiveRecord: 0.0ms)
|
137
|
+
|
138
|
+
|
139
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:43:16 +0100
|
140
|
+
Served asset /sample.css - 304 Not Modified (1ms)
|
141
|
+
|
142
|
+
|
143
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:43:16 +0100
|
144
|
+
Served asset /application.css - 304 Not Modified (29ms)
|
145
|
+
Connecting to database specified by database.yml
|
146
|
+
Connecting to database specified by database.yml
|
147
|
+
[1m[36m (2.8ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
148
|
+
[1m[35mDisclaimer::Document Exists (0.3ms)[0m SELECT 1 AS one FROM "disclaimer_documents" LIMIT 1
|
149
|
+
Connecting to database specified by database.yml
|
150
|
+
[1m[36m (3.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
151
|
+
[1m[35mDisclaimer::Document Exists (0.2ms)[0m SELECT 1 AS one FROM "disclaimer_documents" LIMIT 1
|
152
|
+
Connecting to database specified by database.yml
|
153
|
+
[1m[36m (2.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
154
|
+
[1m[35mDisclaimer::Document Exists (0.2ms)[0m SELECT 1 AS one FROM "disclaimer_documents" LIMIT 1
|
155
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "disclaimer_documents" [0m
|
156
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
158
|
+
[1m[35mSQL (10.6ms)[0m INSERT INTO "disclaimer_documents" ("created_at", "footer", "header", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 13 Sep 2013 13:52:54 UTC +00:00], ["footer", nil], ["header", "This is a disclaimer."], ["name", "demo"], ["title", "A disclaimer"], ["updated_at", Fri, 13 Sep 2013 13:52:54 UTC +00:00]]
|
159
|
+
[1m[36m (240.8ms)[0m [1mcommit transaction[0m
|
160
|
+
Connecting to database specified by database.yml
|
161
|
+
[1m[36m (4.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
162
|
+
[1m[35mDisclaimer::Document Exists (0.2ms)[0m SELECT 1 AS one FROM "disclaimer_documents" LIMIT 1
|
163
|
+
Connecting to database specified by database.yml
|
164
|
+
[1m[36m (3.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
165
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
166
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
167
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "disclaimer_documents"
|
168
|
+
|
169
|
+
|
170
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:53:59 +0100
|
171
|
+
Connecting to database specified by database.yml
|
172
|
+
[1m[36mDisclaimer::Document Load (1.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1[0m
|
173
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" LIMIT 1
|
174
|
+
Processing by SampleController#index as HTML
|
175
|
+
[1m[36mDisclaimer::Document Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
176
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
177
|
+
Redirected to http://localhost:3000/disclaimer/documents/demo
|
178
|
+
Filter chain halted as #<Proc:0x95d5e2c@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:7> rendered or redirected
|
179
|
+
Completed 302 Found in 89ms (ActiveRecord: 0.5ms)
|
180
|
+
|
181
|
+
|
182
|
+
Started GET "/disclaimer/documents/demo" for 127.0.0.1 at 2013-09-13 14:54:00 +0100
|
183
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
184
|
+
Parameters: {"id"=>"demo"}
|
185
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
186
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
187
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/show.html.erb within layouts/disclaimer/application (136.4ms)
|
188
|
+
Compiled disclaimer/documents.css (0ms) (pid 22371)
|
189
|
+
Compiled disclaimer/segments.css (0ms) (pid 22371)
|
190
|
+
Compiled disclaimer/application.css (39ms) (pid 22371)
|
191
|
+
Completed 200 OK in 255ms (Views: 252.0ms | ActiveRecord: 1.3ms)
|
192
|
+
|
193
|
+
|
194
|
+
Started GET "/assets/disclaimer/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:54:00 +0100
|
195
|
+
Served asset /disclaimer/application.css - 200 OK (49ms)
|
196
|
+
|
197
|
+
|
198
|
+
Started GET "/assets/disclaimer/documents.css?body=1" for 127.0.0.1 at 2013-09-13 14:54:00 +0100
|
199
|
+
Served asset /disclaimer/documents.css - 200 OK (42ms)
|
200
|
+
|
201
|
+
|
202
|
+
Started GET "/assets/disclaimer/segments.css?body=1" for 127.0.0.1 at 2013-09-13 14:54:01 +0100
|
203
|
+
Served asset /disclaimer/segments.css - 200 OK (14ms)
|
204
|
+
|
205
|
+
|
206
|
+
Started POST "/disclaimer/documents/demo/accept" for 127.0.0.1 at 2013-09-13 14:54:07 +0100
|
207
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
208
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3AcxZQTHdsVxlb21VlBJp6aLTnsUvsGEh5qbAb1tSgo=", "commit"=>"Accept", "id"=>"demo"}
|
209
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
210
|
+
Redirected to http://localhost:3000/
|
211
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
212
|
+
|
213
|
+
|
214
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:54:07 +0100
|
215
|
+
Processing by SampleController#index as HTML
|
216
|
+
[1m[35mDisclaimer::Document Exists (4.5ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
217
|
+
Rendered sample/index.html.erb within layouts/application (0.5ms)
|
218
|
+
Completed 200 OK in 28ms (Views: 21.0ms | ActiveRecord: 4.5ms)
|
219
|
+
|
220
|
+
|
221
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:54:08 +0100
|
222
|
+
Served asset /application.css - 304 Not Modified (13ms)
|
223
|
+
|
224
|
+
|
225
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:54:08 +0100
|
226
|
+
Served asset /sample.css - 304 Not Modified (8ms)
|
227
|
+
|
228
|
+
|
229
|
+
Started GET "/sample" for 127.0.0.1 at 2013-09-13 14:55:06 +0100
|
230
|
+
Processing by SampleController#index as HTML
|
231
|
+
[1m[36mDisclaimer::Document Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
232
|
+
Rendered sample/index.html.erb within layouts/application (0.1ms)
|
233
|
+
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.5ms)
|
234
|
+
|
235
|
+
|
236
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:07 +0100
|
237
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
238
|
+
|
239
|
+
|
240
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:07 +0100
|
241
|
+
Served asset /sample.css - 304 Not Modified (1ms)
|
242
|
+
|
243
|
+
|
244
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:55:28 +0100
|
245
|
+
Processing by SampleController#index as HTML
|
246
|
+
[1m[35mDisclaimer::Document Exists (0.2ms)[0m SELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
247
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
248
|
+
Redirected to http://localhost:3000/disclaimer/documents/demo
|
249
|
+
Filter chain halted as #<Proc:0x95d5e2c@/home/rob/web/disclaimer/lib/rails/actionpack/lib/action_controller/base.rb:7> rendered or redirected
|
250
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
|
251
|
+
|
252
|
+
|
253
|
+
Started GET "/disclaimer/documents/demo" for 127.0.0.1 at 2013-09-13 14:55:28 +0100
|
254
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
255
|
+
Parameters: {"id"=>"demo"}
|
256
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
257
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position[0m
|
258
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/show.html.erb within layouts/disclaimer/application (6.0ms)
|
259
|
+
Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.5ms)
|
260
|
+
|
261
|
+
|
262
|
+
Started GET "/assets/disclaimer/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:29 +0100
|
263
|
+
Served asset /disclaimer/application.css - 200 OK (9ms)
|
264
|
+
|
265
|
+
|
266
|
+
Started GET "/assets/disclaimer/documents.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:29 +0100
|
267
|
+
Served asset /disclaimer/documents.css - 200 OK (0ms)
|
268
|
+
|
269
|
+
|
270
|
+
Started GET "/assets/disclaimer/segments.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:29 +0100
|
271
|
+
Served asset /disclaimer/segments.css - 200 OK (0ms)
|
272
|
+
|
273
|
+
|
274
|
+
Started POST "/disclaimer/documents/demo/accept" for 127.0.0.1 at 2013-09-13 14:55:35 +0100
|
275
|
+
Processing by Disclaimer::DocumentsController#accept as HTML
|
276
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"86r2uWYiX+5Zn8RB6N7bv+EILpneLUOL5HXfX7KbiTE=", "commit"=>"Accept", "id"=>"demo"}
|
277
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
278
|
+
Redirected to http://localhost:3000/
|
279
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
280
|
+
|
281
|
+
|
282
|
+
Started GET "/" for 127.0.0.1 at 2013-09-13 14:55:35 +0100
|
283
|
+
Processing by SampleController#index as HTML
|
284
|
+
[1m[36mDisclaimer::Document Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
285
|
+
Rendered sample/index.html.erb within layouts/application (0.1ms)
|
286
|
+
Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 0.2ms)
|
287
|
+
|
288
|
+
|
289
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:35 +0100
|
290
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
291
|
+
|
292
|
+
|
293
|
+
Started GET "/assets/sample.css?body=1" for 127.0.0.1 at 2013-09-13 14:55:35 +0100
|
294
|
+
Served asset /sample.css - 304 Not Modified (0ms)
|
295
|
+
|
296
|
+
|
297
|
+
Started GET "/disclaimer/" for 127.0.0.1 at 2013-09-13 14:58:47 +0100
|
298
|
+
Connecting to database specified by database.yml
|
299
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
300
|
+
[1m[36mDisclaimer::Document Load (0.5ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
301
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
302
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/index.html.erb within layouts/disclaimer/application (149.4ms)
|
303
|
+
Completed 200 OK in 291ms (Views: 200.4ms | ActiveRecord: 10.7ms)
|
304
|
+
|
305
|
+
|
306
|
+
Started GET "/disclaimer/documents/demo/edit" for 127.0.0.1 at 2013-09-13 14:58:56 +0100
|
307
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
308
|
+
Parameters: {"id"=>"demo"}
|
309
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
310
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
311
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/new.html.erb within layouts/disclaimer/application (36.8ms)
|
312
|
+
Completed 200 OK in 62ms (Views: 58.2ms | ActiveRecord: 0.5ms)
|
313
|
+
|
314
|
+
|
315
|
+
Started GET "/disclaimer/segments" for 127.0.0.1 at 2013-09-13 14:59:09 +0100
|
316
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
317
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
318
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/index.html.erb within layouts/disclaimer/application (12.9ms)
|
319
|
+
Completed 200 OK in 31ms (Views: 29.8ms | ActiveRecord: 0.2ms)
|
320
|
+
|
321
|
+
|
322
|
+
Started GET "/disclaimer/segments/new" for 127.0.0.1 at 2013-09-13 14:59:12 +0100
|
323
|
+
Processing by Disclaimer::SegmentsController#new as HTML
|
324
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/new.html.erb within layouts/disclaimer/application (6.0ms)
|
325
|
+
Completed 200 OK in 25ms (Views: 19.4ms | ActiveRecord: 0.0ms)
|
326
|
+
|
327
|
+
|
328
|
+
Started POST "/disclaimer/segments" for 127.0.0.1 at 2013-09-13 14:59:32 +0100
|
329
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
330
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3AcxZQTHdsVxlb21VlBJp6aLTnsUvsGEh5qbAb1tSgo=", "segment"=>{"name"=>"one", "title"=>"First one", "body"=>"This is some text"}, "commit"=>"Create Segment"}
|
331
|
+
[1m[35m (0.1ms)[0m begin transaction
|
332
|
+
[1m[36mSQL (26.7ms)[0m [1mINSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["body", "This is some text"], ["created_at", Fri, 13 Sep 2013 13:59:32 UTC +00:00], ["name", "one"], ["title", "First one"], ["updated_at", Fri, 13 Sep 2013 13:59:32 UTC +00:00]]
|
333
|
+
[1m[35m (345.6ms)[0m commit transaction
|
334
|
+
Redirected to http://localhost:3000/disclaimer/segments/one
|
335
|
+
Completed 302 Found in 380ms (ActiveRecord: 372.4ms)
|
336
|
+
|
337
|
+
|
338
|
+
Started GET "/disclaimer/segments/one" for 127.0.0.1 at 2013-09-13 14:59:32 +0100
|
339
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
340
|
+
Parameters: {"id"=>"one"}
|
341
|
+
[1m[36mDisclaimer::Segment Load (1.0ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'one' LIMIT 1[0m
|
342
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (1.3ms)
|
343
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/show.html.erb within layouts/disclaimer/application (8.2ms)
|
344
|
+
Completed 200 OK in 27ms (Views: 23.0ms | ActiveRecord: 1.0ms)
|
345
|
+
|
346
|
+
|
347
|
+
Started GET "/disclaimer" for 127.0.0.1 at 2013-09-13 14:59:37 +0100
|
348
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
349
|
+
[1m[35mDisclaimer::Document Load (0.3ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents"
|
350
|
+
[1m[36mDisclaimer::Segment Load (4.9ms)[0m [1mSELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position[0m
|
351
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/index.html.erb within layouts/disclaimer/application (7.2ms)
|
352
|
+
Completed 200 OK in 34ms (Views: 28.1ms | ActiveRecord: 5.2ms)
|
353
|
+
|
354
|
+
|
355
|
+
Started GET "/disclaimer/documents/demo/edit" for 127.0.0.1 at 2013-09-13 14:59:40 +0100
|
356
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
357
|
+
Parameters: {"id"=>"demo"}
|
358
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1
|
359
|
+
[1m[36mDisclaimer::Segment Load (0.3ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
360
|
+
[1m[35mDisclaimer::Segment Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 1 LIMIT 1
|
361
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/new.html.erb within layouts/disclaimer/application (15.2ms)
|
362
|
+
Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 0.8ms)
|
363
|
+
|
364
|
+
|
365
|
+
Started PUT "/disclaimer/documents/demo" for 127.0.0.1 at 2013-09-13 14:59:47 +0100
|
366
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
367
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3AcxZQTHdsVxlb21VlBJp6aLTnsUvsGEh5qbAb1tSgo=", "document"=>{"name"=>"demo", "title"=>"A disclaimer", "header"=>"This is a disclaimer.", "segments"=>{"1"=>"on"}, "footer"=>""}, "commit"=>"Update Document", "id"=>"demo"}
|
368
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
369
|
+
[1m[35mDisclaimer::Segment Load (0.4ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", "1"]]
|
370
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
371
|
+
[1m[35mDisclaimer::Segment Load (4.7ms)[0m SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
372
|
+
[1m[36mDisclaimer::SegmentHolder Load (0.2ms)[0m [1mSELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1[0m
|
373
|
+
[1m[35mSQL (4.8ms)[0m INSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 13 Sep 2013 13:59:47 UTC +00:00], ["document_id", 1], ["position", 1], ["segment_id", 1], ["updated_at", Fri, 13 Sep 2013 13:59:47 UTC +00:00]]
|
374
|
+
[1m[36m (1.6ms)[0m [1mUPDATE "disclaimer_documents" SET "footer" = '', "updated_at" = '2013-09-13 13:59:47.114703' WHERE "disclaimer_documents"."id" = 1[0m
|
375
|
+
[1m[35m (187.6ms)[0m commit transaction
|
376
|
+
Redirected to http://localhost:3000/disclaimer/documents/demo
|
377
|
+
Completed 302 Found in 284ms (ActiveRecord: 199.5ms)
|
378
|
+
|
379
|
+
|
380
|
+
Started GET "/disclaimer/documents/demo" for 127.0.0.1 at 2013-09-13 14:59:47 +0100
|
381
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
382
|
+
Parameters: {"id"=>"demo"}
|
383
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
384
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
385
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/show.html.erb within layouts/disclaimer/application (6.5ms)
|
386
|
+
Completed 200 OK in 29ms (Views: 23.5ms | ActiveRecord: 0.5ms)
|
387
|
+
|
388
|
+
|
389
|
+
Started GET "/disclaimer/segments" for 127.0.0.1 at 2013-09-13 15:00:07 +0100
|
390
|
+
Processing by Disclaimer::SegmentsController#index as HTML
|
391
|
+
[1m[36mDisclaimer::Segment Load (0.2ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" [0m
|
392
|
+
[1m[35mDisclaimer::Document Load (0.2ms)[0m SELECT "disclaimer_documents".* FROM "disclaimer_documents" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_documents"."id" = "disclaimer_segment_holders"."document_id" WHERE "disclaimer_segment_holders"."segment_id" = 1 ORDER BY position
|
393
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/index.html.erb within layouts/disclaimer/application (15.8ms)
|
394
|
+
Completed 200 OK in 27ms (Views: 26.1ms | ActiveRecord: 0.5ms)
|
395
|
+
|
396
|
+
|
397
|
+
Started GET "/disclaimer/segments/new" for 127.0.0.1 at 2013-09-13 15:00:10 +0100
|
398
|
+
Processing by Disclaimer::SegmentsController#new as HTML
|
399
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/new.html.erb within layouts/disclaimer/application (6.0ms)
|
400
|
+
Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
|
401
|
+
|
402
|
+
|
403
|
+
Started POST "/disclaimer/segments" for 127.0.0.1 at 2013-09-13 15:00:21 +0100
|
404
|
+
Processing by Disclaimer::SegmentsController#create as HTML
|
405
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3AcxZQTHdsVxlb21VlBJp6aLTnsUvsGEh5qbAb1tSgo=", "segment"=>{"name"=>"two", "title"=>"Two", "body"=>"Segment two"}, "commit"=>"Create Segment"}
|
406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
407
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "disclaimer_segments" ("body", "created_at", "name", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "Segment two"], ["created_at", Fri, 13 Sep 2013 14:00:21 UTC +00:00], ["name", "two"], ["title", "Two"], ["updated_at", Fri, 13 Sep 2013 14:00:21 UTC +00:00]]
|
408
|
+
[1m[36m (257.5ms)[0m [1mcommit transaction[0m
|
409
|
+
Redirected to http://localhost:3000/disclaimer/segments/two
|
410
|
+
Completed 302 Found in 262ms (ActiveRecord: 258.6ms)
|
411
|
+
|
412
|
+
|
413
|
+
Started GET "/disclaimer/segments/two" for 127.0.0.1 at 2013-09-13 15:00:21 +0100
|
414
|
+
Processing by Disclaimer::SegmentsController#show as HTML
|
415
|
+
Parameters: {"id"=>"two"}
|
416
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."name" = 'two' LIMIT 1
|
417
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/_segment.html.erb (0.1ms)
|
418
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/segments/show.html.erb within layouts/disclaimer/application (7.1ms)
|
419
|
+
Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.2ms)
|
420
|
+
|
421
|
+
|
422
|
+
Started GET "/disclaimer/documents" for 127.0.0.1 at 2013-09-13 15:00:29 +0100
|
423
|
+
Processing by Disclaimer::DocumentsController#index as HTML
|
424
|
+
[1m[36mDisclaimer::Document Load (0.3ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" [0m
|
425
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
426
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/index.html.erb within layouts/disclaimer/application (16.1ms)
|
427
|
+
Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.6ms)
|
428
|
+
|
429
|
+
|
430
|
+
Started GET "/disclaimer/documents/demo/edit" for 127.0.0.1 at 2013-09-13 15:00:31 +0100
|
431
|
+
Processing by Disclaimer::DocumentsController#edit as HTML
|
432
|
+
Parameters: {"id"=>"demo"}
|
433
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
434
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments"
|
435
|
+
[1m[36mDisclaimer::Segment Exists (0.2ms)[0m [1mSELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 1 LIMIT 1[0m
|
436
|
+
[1m[35mDisclaimer::Segment Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 AND "disclaimer_segments"."id" = 2 LIMIT 1
|
437
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/new.html.erb within layouts/disclaimer/application (11.2ms)
|
438
|
+
Completed 200 OK in 39ms (Views: 32.1ms | ActiveRecord: 0.9ms)
|
439
|
+
|
440
|
+
|
441
|
+
Started PUT "/disclaimer/documents/demo" for 127.0.0.1 at 2013-09-13 15:00:34 +0100
|
442
|
+
Processing by Disclaimer::DocumentsController#update as HTML
|
443
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3AcxZQTHdsVxlb21VlBJp6aLTnsUvsGEh5qbAb1tSgo=", "document"=>{"name"=>"demo", "title"=>"A disclaimer", "header"=>"This is a disclaimer.", "segments"=>{"1"=>"on", "2"=>"on"}, "footer"=>""}, "commit"=>"Update Document", "id"=>"demo"}
|
444
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
445
|
+
[1m[35mDisclaimer::Segment Load (0.2ms)[0m SELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1 [["id", "1"]]
|
446
|
+
[1m[36mDisclaimer::Segment Load (0.1ms)[0m [1mSELECT "disclaimer_segments".* FROM "disclaimer_segments" WHERE "disclaimer_segments"."id" = ? LIMIT 1[0m [["id", "2"]]
|
447
|
+
[1m[35m (0.0ms)[0m begin transaction
|
448
|
+
[1m[36mDisclaimer::Segment Load (5.2ms)[0m [1mSELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position[0m
|
449
|
+
[1m[35mDisclaimer::SegmentHolder Load (0.1ms)[0m SELECT "disclaimer_segment_holders".* FROM "disclaimer_segment_holders" WHERE ("disclaimer_segment_holders"."document_id" = 1) ORDER BY disclaimer_segment_holders.position DESC LIMIT 1
|
450
|
+
[1m[36mSQL (7.3ms)[0m [1mINSERT INTO "disclaimer_segment_holders" ("created_at", "document_id", "position", "segment_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 13 Sep 2013 14:00:34 UTC +00:00], ["document_id", 1], ["position", 2], ["segment_id", 2], ["updated_at", Fri, 13 Sep 2013 14:00:34 UTC +00:00]]
|
451
|
+
[1m[35m (281.7ms)[0m commit transaction
|
452
|
+
Redirected to http://localhost:3000/disclaimer/documents/demo
|
453
|
+
Completed 302 Found in 309ms (ActiveRecord: 294.9ms)
|
454
|
+
|
455
|
+
|
456
|
+
Started GET "/disclaimer/documents/demo" for 127.0.0.1 at 2013-09-13 15:00:35 +0100
|
457
|
+
Processing by Disclaimer::DocumentsController#show as HTML
|
458
|
+
Parameters: {"id"=>"demo"}
|
459
|
+
[1m[36mDisclaimer::Document Load (0.2ms)[0m [1mSELECT "disclaimer_documents".* FROM "disclaimer_documents" WHERE "disclaimer_documents"."name" = 'demo' LIMIT 1[0m
|
460
|
+
[1m[35mDisclaimer::Segment Load (0.3ms)[0m SELECT DISTINCT "disclaimer_segments".* FROM "disclaimer_segments" INNER JOIN "disclaimer_segment_holders" ON "disclaimer_segments"."id" = "disclaimer_segment_holders"."segment_id" WHERE "disclaimer_segment_holders"."document_id" = 1 ORDER BY position
|
461
|
+
Rendered /home/rob/web/disclaimer/app/views/disclaimer/documents/show.html.erb within layouts/disclaimer/application (4.7ms)
|
462
|
+
Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.5ms)
|
463
|
+
Connecting to database specified by database.yml
|