impressionizer 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +3 -3
- data/CHANGELOG.md +6 -0
- data/app/controllers/impressionizer/impressions_controller.rb +12 -11
- data/app/models/impressionizer/impressionable.rb +4 -0
- data/lib/generators/impressionizer/templates/migration.rb +2 -0
- data/lib/impressionizer/version.rb +1 -1
- data/spec/dummy/app/views/pages/index.html.erb +8 -0
- data/spec/dummy/db/migrate/{20110701044058_create_impressions.rb → 20110830151041_create_impressions.rb} +2 -0
- data/spec/dummy/db/schema.rb +4 -1
- metadata +4 -16
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -813
- data/spec/dummy/log/production.log +0 -0
- data/spec/dummy/log/server.log +0 -0
- data/spec/dummy/log/test.log +0 -5696
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
0.0.4 (2011-08-30)
|
2
|
+
------------------
|
3
|
+
* changed logging from show actions only to every action
|
4
|
+
* added `impressions_for_actions` class method
|
5
|
+
* added some more sample output to dummy application
|
6
|
+
|
1
7
|
0.0.3 (2011-07-06)
|
2
8
|
------------------
|
3
9
|
* added `most_impressions` and `most_unique_impressions` to impressionable class
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Impressionizer
|
2
|
-
module ImpressionsController
|
2
|
+
module ImpressionsController
|
3
3
|
module ClassMethods
|
4
4
|
def impressionize(args={})
|
5
5
|
end
|
@@ -7,16 +7,17 @@ module Impressionizer
|
|
7
7
|
|
8
8
|
module InstanceMethods
|
9
9
|
def impressionize
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
10
|
+
Impressionizer::Impression.create(
|
11
|
+
:impressionable_type => controller_name.singularize.capitalize,
|
12
|
+
:impressionable_id => params[:id],
|
13
|
+
:controller_name => controller_name,
|
14
|
+
:action_name => action_name,
|
15
|
+
:session_hash => request.session_options[:id],
|
16
|
+
:request_hash => ActiveSupport::SecureRandom.hex(187),
|
17
|
+
:referrer => request.referer,
|
18
|
+
:ip_address => request.remote_ip,
|
19
|
+
:user_id => current_user_id
|
20
|
+
)
|
20
21
|
end
|
21
22
|
|
22
23
|
private
|
@@ -14,6 +14,10 @@ module Impressionizer
|
|
14
14
|
def most_unique_impressions
|
15
15
|
self.scoped.select{|obj| obj.impression_count > 0}.sort_by{|obj| -obj.unique_impression_count}
|
16
16
|
end
|
17
|
+
|
18
|
+
def impressions_for_action(action_name)
|
19
|
+
Impressionizer::Impression.where(:action_name => action_name).count
|
20
|
+
end
|
17
21
|
end
|
18
22
|
|
19
23
|
module InstanceMethods
|
@@ -3,6 +3,8 @@ class CreateImpressions < ActiveRecord::Migration
|
|
3
3
|
create_table :impressions, :force => true do |t|
|
4
4
|
t.string :impressionable_type
|
5
5
|
t.integer :impressionable_id
|
6
|
+
t.string :controller_name
|
7
|
+
t.string :action_name
|
6
8
|
t.string :session_hash
|
7
9
|
t.string :request_hash
|
8
10
|
t.string :referrer
|
@@ -1,10 +1,17 @@
|
|
1
1
|
<h1>Listing pages</h1>
|
2
2
|
|
3
|
+
<p>Page index impressions: <%= Page.impressions_for_action('index') %></p>
|
4
|
+
<p>Page with most impressions: <%= Page.most_impressions.first.title %></p>
|
5
|
+
<p>Page with most unique impressions: <%= Page.most_unique_impressions.first.title %></p>
|
6
|
+
<p>Page new impressions: <%= Page.impressions_for_action('new') %></p>
|
7
|
+
<p>Page show impressions: <%= Page.impressions_for_action('show') %></p>
|
8
|
+
|
3
9
|
<table>
|
4
10
|
<tr>
|
5
11
|
<th>Title</th>
|
6
12
|
<th>Body</th>
|
7
13
|
<th>Impression Count</th>
|
14
|
+
<th>Unique Impression Count</th>
|
8
15
|
<th></th>
|
9
16
|
<th></th>
|
10
17
|
<th></th>
|
@@ -15,6 +22,7 @@
|
|
15
22
|
<td><%= page.title %></td>
|
16
23
|
<td><%= page.body %></td>
|
17
24
|
<td><%= page.impression_count %></td>
|
25
|
+
<td><%= page.unique_impression_count %></td>
|
18
26
|
<td><%= link_to 'Show', page %></td>
|
19
27
|
<td><%= link_to 'Edit', edit_page_path(page) %></td>
|
20
28
|
<td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
|
@@ -3,6 +3,8 @@ class CreateImpressions < ActiveRecord::Migration
|
|
3
3
|
create_table :impressions, :force => true do |t|
|
4
4
|
t.string :impressionable_type
|
5
5
|
t.integer :impressionable_id
|
6
|
+
t.string :controller_name
|
7
|
+
t.string :action_name
|
6
8
|
t.string :session_hash
|
7
9
|
t.string :request_hash
|
8
10
|
t.string :referrer
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,11 +10,14 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended to check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(:version =>
|
13
|
+
ActiveRecord::Schema.define(:version => 20110830151041) do
|
14
14
|
|
15
15
|
create_table "impressions", :force => true do |t|
|
16
16
|
t.string "impressionable_type"
|
17
17
|
t.integer "impressionable_id"
|
18
|
+
t.string "controller_name"
|
19
|
+
t.string "action_name"
|
20
|
+
t.string "view_name"
|
18
21
|
t.string "session_hash"
|
19
22
|
t.string "request_hash"
|
20
23
|
t.string "referrer"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: impressionizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Patrick Bartels
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-08-30 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -101,15 +101,9 @@ files:
|
|
101
101
|
- spec/dummy/coverage/rcov.js
|
102
102
|
- spec/dummy/coverage/screen.css
|
103
103
|
- spec/dummy/coverage/spec-models-page_spec_rb.html
|
104
|
-
- spec/dummy/db/development.sqlite3
|
105
104
|
- spec/dummy/db/migrate/20110701011920_create_pages.rb
|
106
|
-
- spec/dummy/db/migrate/
|
105
|
+
- spec/dummy/db/migrate/20110830151041_create_impressions.rb
|
107
106
|
- spec/dummy/db/schema.rb
|
108
|
-
- spec/dummy/db/test.sqlite3
|
109
|
-
- spec/dummy/log/development.log
|
110
|
-
- spec/dummy/log/production.log
|
111
|
-
- spec/dummy/log/server.log
|
112
|
-
- spec/dummy/log/test.log
|
113
107
|
- spec/dummy/public/404.html
|
114
108
|
- spec/dummy/public/422.html
|
115
109
|
- spec/dummy/public/500.html
|
@@ -207,15 +201,9 @@ test_files:
|
|
207
201
|
- spec/dummy/coverage/rcov.js
|
208
202
|
- spec/dummy/coverage/screen.css
|
209
203
|
- spec/dummy/coverage/spec-models-page_spec_rb.html
|
210
|
-
- spec/dummy/db/development.sqlite3
|
211
204
|
- spec/dummy/db/migrate/20110701011920_create_pages.rb
|
212
|
-
- spec/dummy/db/migrate/
|
205
|
+
- spec/dummy/db/migrate/20110830151041_create_impressions.rb
|
213
206
|
- spec/dummy/db/schema.rb
|
214
|
-
- spec/dummy/db/test.sqlite3
|
215
|
-
- spec/dummy/log/development.log
|
216
|
-
- spec/dummy/log/production.log
|
217
|
-
- spec/dummy/log/server.log
|
218
|
-
- spec/dummy/log/test.log
|
219
207
|
- spec/dummy/public/404.html
|
220
208
|
- spec/dummy/public/422.html
|
221
209
|
- spec/dummy/public/500.html
|
Binary file
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,813 +0,0 @@
|
|
1
|
-
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
2
|
-
FROM sqlite_master
|
3
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4
|
-
[0m
|
5
|
-
[1m[35mSQL (0.1ms)[0m select sqlite_version(*)
|
6
|
-
[1m[36mSQL (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
8
|
-
[1m[36mSQL (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
10
|
-
FROM sqlite_master
|
11
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
12
|
-
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
13
|
-
FROM sqlite_master
|
14
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
15
|
-
[0m
|
16
|
-
[1m[35mSQL (0.2ms)[0m SELECT name
|
17
|
-
FROM sqlite_master
|
18
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
19
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
20
|
-
FROM sqlite_master
|
21
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
22
|
-
[0m
|
23
|
-
[1m[35mSQL (0.2ms)[0m SELECT name
|
24
|
-
FROM sqlite_master
|
25
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
26
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
27
|
-
FROM sqlite_master
|
28
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
29
|
-
[0m
|
30
|
-
[1m[35mSQL (0.2ms)[0m SELECT name
|
31
|
-
FROM sqlite_master
|
32
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
33
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
34
|
-
FROM sqlite_master
|
35
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
36
|
-
[0m
|
37
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
38
|
-
FROM sqlite_master
|
39
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
40
|
-
[0m
|
41
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
42
|
-
FROM sqlite_master
|
43
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
44
|
-
[0m
|
45
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
46
|
-
FROM sqlite_master
|
47
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
48
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
49
|
-
Migrating to CreatePages (20110701011920)
|
50
|
-
[1m[35mSQL (0.0ms)[0m select sqlite_version(*)
|
51
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
|
52
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110701011920')
|
53
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
54
|
-
FROM sqlite_master
|
55
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
56
|
-
[0m
|
57
|
-
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
58
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
59
|
-
FROM sqlite_master
|
60
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
61
|
-
[0m
|
62
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("pages")
|
63
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
64
|
-
FROM sqlite_master
|
65
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
66
|
-
[0m
|
67
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
68
|
-
|
69
|
-
|
70
|
-
Started GET "/" for 127.0.0.1 at 2011-07-01 16:05:54 +1200
|
71
|
-
|
72
|
-
ActionController::RoutingError (No route matches "/"):
|
73
|
-
|
74
|
-
|
75
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
|
76
|
-
|
77
|
-
|
78
|
-
Started GET "/" for 127.0.0.1 at 2011-07-01 16:06:20 +1200
|
79
|
-
Processing by PagesController#index as HTML
|
80
|
-
Completed 500 Internal Server Error in 1ms
|
81
|
-
|
82
|
-
NameError (undefined local variable or method `impressionize' for #<PagesController:0x00000102445220>):
|
83
|
-
|
84
|
-
|
85
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
86
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.0ms)
|
87
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.0ms)
|
88
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
89
|
-
|
90
|
-
|
91
|
-
Started GET "/" for 127.0.0.1 at 2011-07-01 16:07:11 +1200
|
92
|
-
Processing by PagesController#index as HTML
|
93
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
94
|
-
Rendered pages/index.html.erb within layouts/application (1.7ms)
|
95
|
-
Completed 200 OK in 69ms (Views: 5.0ms | ActiveRecord: 0.3ms)
|
96
|
-
|
97
|
-
|
98
|
-
Started GET "/pages/new" for 127.0.0.1 at 2011-07-01 16:07:48 +1200
|
99
|
-
Processing by PagesController#new as HTML
|
100
|
-
Rendered pages/_form.html.erb (7.7ms)
|
101
|
-
Rendered pages/new.html.erb within layouts/application (10.1ms)
|
102
|
-
Completed 200 OK in 21ms (Views: 13.4ms | ActiveRecord: 0.0ms)
|
103
|
-
|
104
|
-
|
105
|
-
Started POST "/pages" for 127.0.0.1 at 2011-07-01 16:07:55 +1200
|
106
|
-
Processing by PagesController#create as HTML
|
107
|
-
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1fHsFsD3dMjZu0jMvdNGm7y2cIC8l9bSgMxGNe2El/o=", "page"=>{"title"=>"Test", "body"=>"Test"}, "commit"=>"Create Page"}
|
108
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
109
|
-
FROM sqlite_master
|
110
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
111
|
-
[1m[36mAREL (0.3ms)[0m [1mINSERT INTO "pages" ("title", "body", "created_at", "updated_at") VALUES ('Test', 'Test', '2011-07-01 04:07:55.912590', '2011-07-01 04:07:55.912590')[0m
|
112
|
-
Redirected to http://localhost:3000/pages/1
|
113
|
-
Completed 302 Found in 62ms
|
114
|
-
|
115
|
-
|
116
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:07:56 +1200
|
117
|
-
Processing by PagesController#show as HTML
|
118
|
-
Parameters: {"id"=>"1"}
|
119
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
120
|
-
Rendered pages/show.html.erb within layouts/application (6.2ms)
|
121
|
-
Completed 200 OK in 17ms (Views: 9.4ms | ActiveRecord: 0.1ms)
|
122
|
-
|
123
|
-
|
124
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:07:59 +1200
|
125
|
-
Processing by PagesController#index as HTML
|
126
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
127
|
-
Rendered pages/index.html.erb within layouts/application (23.2ms)
|
128
|
-
Completed 200 OK in 33ms (Views: 26.3ms | ActiveRecord: 0.3ms)
|
129
|
-
|
130
|
-
|
131
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:09:17 +1200
|
132
|
-
Processing by PagesController#index as HTML
|
133
|
-
[1m[35mPage Load (0.3ms)[0m SELECT "pages".* FROM "pages"
|
134
|
-
Rendered pages/index.html.erb within layouts/application (41.4ms)
|
135
|
-
Completed 500 Internal Server Error in 50ms
|
136
|
-
|
137
|
-
ActionView::Template::Error (Could not find table 'impressions'):
|
138
|
-
14: <tr>
|
139
|
-
15: <td><%= page.title %></td>
|
140
|
-
16: <td><%= page.body %></td>
|
141
|
-
17: <td><%= page.impression_count %></td>
|
142
|
-
18: <td><%= link_to 'Show', page %></td>
|
143
|
-
19: <td><%= link_to 'Edit', edit_page_path(page) %></td>
|
144
|
-
20: <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
|
145
|
-
app/views/pages/index.html.erb:17:in `block in _app_views_pages_index_html_erb__3314047445204517918_2153078360_1275174332812639410'
|
146
|
-
app/views/pages/index.html.erb:13:in `each'
|
147
|
-
app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb__3314047445204517918_2153078360_1275174332812639410'
|
148
|
-
app/controllers/pages_controller.rb:9:in `index'
|
149
|
-
|
150
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
151
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.5ms)
|
152
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.1ms)
|
153
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
154
|
-
FROM sqlite_master
|
155
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
156
|
-
[0m
|
157
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
158
|
-
FROM sqlite_master
|
159
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
160
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
161
|
-
Migrating to CreatePages (20110701011920)
|
162
|
-
Migrating to CreateImpressions (20110701040959)
|
163
|
-
[1m[35mSQL (0.0ms)[0m select sqlite_version(*)
|
164
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
165
|
-
FROM sqlite_master
|
166
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
167
|
-
[0m
|
168
|
-
[1m[35mSQL (0.3ms)[0m CREATE TABLE "impressions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "impressionable_type" varchar(255), "impressionable_id" integer, "user_id" integer, "ip_address" varchar(255), "created_at" datetime, "updated_at" datetime)
|
169
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110701040959')[0m
|
170
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
171
|
-
FROM sqlite_master
|
172
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
173
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
174
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
175
|
-
FROM sqlite_master
|
176
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
177
|
-
[1m[36mSQL (0.0ms)[0m [1mPRAGMA index_list("impressions")[0m
|
178
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("pages")
|
179
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
180
|
-
|
181
|
-
|
182
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:10:24 +1200
|
183
|
-
Processing by PagesController#index as HTML
|
184
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
185
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
186
|
-
SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
187
|
-
Rendered pages/index.html.erb within layouts/application (48.9ms)
|
188
|
-
Completed 500 Internal Server Error in 116ms
|
189
|
-
|
190
|
-
ActionView::Template::Error (SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)):
|
191
|
-
14: <tr>
|
192
|
-
15: <td><%= page.title %></td>
|
193
|
-
16: <td><%= page.body %></td>
|
194
|
-
17: <td><%= page.impression_count %></td>
|
195
|
-
18: <td><%= link_to 'Show', page %></td>
|
196
|
-
19: <td><%= link_to 'Edit', edit_page_path(page) %></td>
|
197
|
-
20: <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
|
198
|
-
app/views/pages/index.html.erb:17:in `block in _app_views_pages_index_html_erb___2256720710288493514_2152552040_114456384112737612'
|
199
|
-
app/views/pages/index.html.erb:13:in `each'
|
200
|
-
app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb___2256720710288493514_2152552040_114456384112737612'
|
201
|
-
app/controllers/pages_controller.rb:9:in `index'
|
202
|
-
|
203
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
204
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.7ms)
|
205
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.2ms)
|
206
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
207
|
-
|
208
|
-
|
209
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:11:58 +1200
|
210
|
-
Processing by PagesController#index as HTML
|
211
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
212
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
213
|
-
SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
214
|
-
Rendered pages/index.html.erb within layouts/application (49.1ms)
|
215
|
-
Completed 500 Internal Server Error in 116ms
|
216
|
-
|
217
|
-
ActionView::Template::Error (SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)):
|
218
|
-
14: <tr>
|
219
|
-
15: <td><%= page.title %></td>
|
220
|
-
16: <td><%= page.body %></td>
|
221
|
-
17: <td><%= page.impression_count %></td>
|
222
|
-
18: <td><%= link_to 'Show', page %></td>
|
223
|
-
19: <td><%= link_to 'Edit', edit_page_path(page) %></td>
|
224
|
-
20: <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
|
225
|
-
app/views/pages/index.html.erb:17:in `block in _app_views_pages_index_html_erb__1199822382288966927_2156652280__3186014091112392536'
|
226
|
-
app/views/pages/index.html.erb:13:in `each'
|
227
|
-
app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb__1199822382288966927_2156652280__3186014091112392536'
|
228
|
-
app/controllers/pages_controller.rb:9:in `index'
|
229
|
-
|
230
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
231
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.5ms)
|
232
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.8ms)
|
233
|
-
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
234
|
-
FROM sqlite_master
|
235
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
236
|
-
[0m
|
237
|
-
[1m[35mSQL (0.1ms)[0m select sqlite_version(*)
|
238
|
-
[1m[36mSQL (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
239
|
-
[1m[35mSQL (0.1ms)[0m PRAGMA index_list("schema_migrations")
|
240
|
-
[1m[36mSQL (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
241
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
242
|
-
FROM sqlite_master
|
243
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
244
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
245
|
-
FROM sqlite_master
|
246
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
247
|
-
[0m
|
248
|
-
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
249
|
-
Migrating to CreatePages (20110701011920)
|
250
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
|
251
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110701011920')
|
252
|
-
Migrating to CreateImpressions (20110701040959)
|
253
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
254
|
-
FROM sqlite_master
|
255
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
256
|
-
[0m
|
257
|
-
[1m[35mSQL (0.2ms)[0m CREATE TABLE "impressions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "impressionable_type" varchar(255), "impressionable_id" integer, "user_id" integer, "ip_address" varchar(255), "created_at" datetime, "updated_at" datetime)
|
258
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110701040959')[0m
|
259
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
260
|
-
FROM sqlite_master
|
261
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
262
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
263
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
264
|
-
FROM sqlite_master
|
265
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
266
|
-
[1m[36mSQL (0.0ms)[0m [1mPRAGMA index_list("impressions")[0m
|
267
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("pages")
|
268
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
269
|
-
|
270
|
-
|
271
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:12:25 +1200
|
272
|
-
Processing by PagesController#index as HTML
|
273
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
274
|
-
Rendered pages/index.html.erb within layouts/application (1.8ms)
|
275
|
-
Completed 200 OK in 68ms (Views: 5.0ms | ActiveRecord: 0.3ms)
|
276
|
-
|
277
|
-
|
278
|
-
Started GET "/pages/new" for 127.0.0.1 at 2011-07-01 16:12:29 +1200
|
279
|
-
Processing by PagesController#new as HTML
|
280
|
-
Rendered pages/_form.html.erb (7.4ms)
|
281
|
-
Rendered pages/new.html.erb within layouts/application (9.7ms)
|
282
|
-
Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 0.0ms)
|
283
|
-
|
284
|
-
|
285
|
-
Started POST "/pages" for 127.0.0.1 at 2011-07-01 16:12:37 +1200
|
286
|
-
Processing by PagesController#create as HTML
|
287
|
-
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1fHsFsD3dMjZu0jMvdNGm7y2cIC8l9bSgMxGNe2El/o=", "page"=>{"title"=>"Test", "body"=>"Bla"}, "commit"=>"Create Page"}
|
288
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
289
|
-
FROM sqlite_master
|
290
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
291
|
-
[1m[36mAREL (0.3ms)[0m [1mINSERT INTO "pages" ("title", "body", "created_at", "updated_at") VALUES ('Test', 'Bla', '2011-07-01 04:12:37.911364', '2011-07-01 04:12:37.911364')[0m
|
292
|
-
Redirected to http://localhost:3000/pages/1
|
293
|
-
Completed 302 Found in 25ms
|
294
|
-
|
295
|
-
|
296
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:12:37 +1200
|
297
|
-
Processing by PagesController#show as HTML
|
298
|
-
Parameters: {"id"=>"1"}
|
299
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
300
|
-
Rendered pages/show.html.erb within layouts/application (6.1ms)
|
301
|
-
Completed 200 OK in 16ms (Views: 9.0ms | ActiveRecord: 0.1ms)
|
302
|
-
|
303
|
-
|
304
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:12:42 +1200
|
305
|
-
Processing by PagesController#index as HTML
|
306
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
307
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
308
|
-
SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
309
|
-
Rendered pages/index.html.erb within layouts/application (42.4ms)
|
310
|
-
Completed 500 Internal Server Error in 51ms
|
311
|
-
|
312
|
-
ActionView::Template::Error (SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)):
|
313
|
-
14: <tr>
|
314
|
-
15: <td><%= page.title %></td>
|
315
|
-
16: <td><%= page.body %></td>
|
316
|
-
17: <td><%= page.impression_count %></td>
|
317
|
-
18: <td><%= link_to 'Show', page %></td>
|
318
|
-
19: <td><%= link_to 'Edit', edit_page_path(page) %></td>
|
319
|
-
20: <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
|
320
|
-
app/views/pages/index.html.erb:17:in `block in _app_views_pages_index_html_erb___1174119244800351848_2160883200__3850886717389898353'
|
321
|
-
app/views/pages/index.html.erb:13:in `each'
|
322
|
-
app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb___1174119244800351848_2160883200__3850886717389898353'
|
323
|
-
app/controllers/pages_controller.rb:9:in `index'
|
324
|
-
|
325
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
326
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.6ms)
|
327
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.0ms)
|
328
|
-
|
329
|
-
|
330
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:14:26 +1200
|
331
|
-
Processing by PagesController#index as HTML
|
332
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
333
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
334
|
-
SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)
|
335
|
-
Rendered pages/index.html.erb within layouts/application (13.3ms)
|
336
|
-
Completed 500 Internal Server Error in 38ms
|
337
|
-
|
338
|
-
ActionView::Template::Error (SQLite3::SQLException: no such column: impressions.page_id: SELECT COUNT(*) FROM "impressions" WHERE ("impressions".page_id = 1)):
|
339
|
-
14: <tr>
|
340
|
-
15: <td><%= page.title %></td>
|
341
|
-
16: <td><%= page.body %></td>
|
342
|
-
17: <td><%= page.impression_count %></td>
|
343
|
-
18: <td><%= link_to 'Show', page %></td>
|
344
|
-
19: <td><%= link_to 'Edit', edit_page_path(page) %></td>
|
345
|
-
20: <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
|
346
|
-
app/views/pages/index.html.erb:17:in `block in _app_views_pages_index_html_erb___1174119244800351848_2177686520__3850886717389898353'
|
347
|
-
app/views/pages/index.html.erb:13:in `each'
|
348
|
-
app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb___1174119244800351848_2177686520__3850886717389898353'
|
349
|
-
app/controllers/pages_controller.rb:9:in `index'
|
350
|
-
|
351
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
352
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.5ms)
|
353
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.0ms)
|
354
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
355
|
-
|
356
|
-
|
357
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:14:57 +1200
|
358
|
-
Processing by PagesController#index as HTML
|
359
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
360
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
361
|
-
Rendered pages/index.html.erb within layouts/application (41.6ms)
|
362
|
-
Completed 200 OK in 108ms (Views: 44.5ms | ActiveRecord: 0.5ms)
|
363
|
-
|
364
|
-
|
365
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:15:02 +1200
|
366
|
-
Processing by PagesController#show as HTML
|
367
|
-
Parameters: {"id"=>"1"}
|
368
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
369
|
-
FROM sqlite_master
|
370
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
371
|
-
[0m
|
372
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
373
|
-
Rendered pages/show.html.erb within layouts/application (5.7ms)
|
374
|
-
Completed 200 OK in 16ms (Views: 8.6ms | ActiveRecord: 0.3ms)
|
375
|
-
|
376
|
-
|
377
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:15:06 +1200
|
378
|
-
Processing by PagesController#index as HTML
|
379
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
380
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
381
|
-
Rendered pages/index.html.erb within layouts/application (14.9ms)
|
382
|
-
Completed 200 OK in 24ms (Views: 17.9ms | ActiveRecord: 0.4ms)
|
383
|
-
|
384
|
-
|
385
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:15:39 +1200
|
386
|
-
Processing by PagesController#index as HTML
|
387
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
388
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
389
|
-
Rendered pages/index.html.erb within layouts/application (16.9ms)
|
390
|
-
Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 0.4ms)
|
391
|
-
|
392
|
-
|
393
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:15:42 +1200
|
394
|
-
Processing by PagesController#show as HTML
|
395
|
-
Parameters: {"id"=>"1"}
|
396
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
397
|
-
Rendered pages/show.html.erb within layouts/application (5.9ms)
|
398
|
-
Completed 200 OK in 34ms (Views: 9.0ms | ActiveRecord: 0.1ms)
|
399
|
-
|
400
|
-
|
401
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:15:47 +1200
|
402
|
-
Processing by PagesController#show as HTML
|
403
|
-
Parameters: {"id"=>"1"}
|
404
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
405
|
-
Rendered pages/show.html.erb within layouts/application (22.3ms)
|
406
|
-
Completed 200 OK in 32ms (Views: 25.2ms | ActiveRecord: 0.1ms)
|
407
|
-
|
408
|
-
|
409
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:16:00 +1200
|
410
|
-
Processing by PagesController#show as HTML
|
411
|
-
Parameters: {"id"=>"1"}
|
412
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
413
|
-
Rendered pages/show.html.erb within layouts/application (5.7ms)
|
414
|
-
Completed 200 OK in 16ms (Views: 8.8ms | ActiveRecord: 0.1ms)
|
415
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
416
|
-
|
417
|
-
|
418
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:16:22 +1200
|
419
|
-
Processing by PagesController#show as HTML
|
420
|
-
Parameters: {"id"=>"1"}
|
421
|
-
[1m[36mSQL (0.4ms)[0m [1m SELECT name
|
422
|
-
FROM sqlite_master
|
423
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
424
|
-
[0m
|
425
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
426
|
-
Rendered pages/show.html.erb within layouts/application (22.3ms)
|
427
|
-
Completed 200 OK in 97ms (Views: 25.6ms | ActiveRecord: 0.5ms)
|
428
|
-
|
429
|
-
|
430
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:16:52 +1200
|
431
|
-
Processing by PagesController#show as HTML
|
432
|
-
Parameters: {"id"=>"1"}
|
433
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
434
|
-
Rendered pages/show.html.erb within layouts/application (6.1ms)
|
435
|
-
Completed 200 OK in 17ms (Views: 9.1ms | ActiveRecord: 0.1ms)
|
436
|
-
|
437
|
-
|
438
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:17:20 +1200
|
439
|
-
Processing by PagesController#show as HTML
|
440
|
-
Parameters: {"id"=>"1"}
|
441
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
442
|
-
Rendered pages/show.html.erb within layouts/application (22.5ms)
|
443
|
-
Completed 200 OK in 34ms (Views: 25.7ms | ActiveRecord: 0.1ms)
|
444
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
445
|
-
|
446
|
-
|
447
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:17:37 +1200
|
448
|
-
Processing by PagesController#show as HTML
|
449
|
-
Parameters: {"id"=>"1"}
|
450
|
-
Completed 500 Internal Server Error in 0ms
|
451
|
-
|
452
|
-
NameError (wrong constant name page):
|
453
|
-
|
454
|
-
|
455
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
456
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.4ms)
|
457
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.8ms)
|
458
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
459
|
-
FROM sqlite_master
|
460
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
461
|
-
[0m
|
462
|
-
[1m[35mSQL (0.3ms)[0m SELECT name
|
463
|
-
FROM sqlite_master
|
464
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
465
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
466
|
-
|
467
|
-
|
468
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:21:51 +1200
|
469
|
-
Processing by PagesController#show as HTML
|
470
|
-
Parameters: {"id"=>"1"}
|
471
|
-
Completed 500 Internal Server Error in 15ms
|
472
|
-
|
473
|
-
NameError (undefined local variable or method `capitalize' for #<PagesController:0x00000102335ce0>):
|
474
|
-
|
475
|
-
|
476
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
477
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.1ms)
|
478
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.3ms)
|
479
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
480
|
-
|
481
|
-
|
482
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:22:11 +1200
|
483
|
-
Processing by PagesController#show as HTML
|
484
|
-
Parameters: {"id"=>"1"}
|
485
|
-
[1m[36mSQL (0.4ms)[0m [1m SELECT name
|
486
|
-
FROM sqlite_master
|
487
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
488
|
-
[0m
|
489
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
490
|
-
Completed 500 Internal Server Error in 98ms
|
491
|
-
|
492
|
-
NameError (undefined local variable or method `current_user' for #<PagesController:0x00000101b39a28>):
|
493
|
-
|
494
|
-
|
495
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
496
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms)
|
497
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.5ms)
|
498
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
499
|
-
|
500
|
-
|
501
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:22:38 +1200
|
502
|
-
Processing by PagesController#show as HTML
|
503
|
-
Parameters: {"id"=>"1"}
|
504
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
505
|
-
FROM sqlite_master
|
506
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
507
|
-
[0m
|
508
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
509
|
-
[1m[36mAREL (0.3ms)[0m [1mINSERT INTO "impressions" ("impressionable_type", "impressionable_id", "user_id", "ip_address", "created_at", "updated_at") VALUES ('Page', 1, 1, '127.0.0.1', '2011-07-01 04:22:38.736433', '2011-07-01 04:22:38.736433')[0m
|
510
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
511
|
-
Rendered pages/show.html.erb within layouts/application (1.8ms)
|
512
|
-
Completed 200 OK in 117ms (Views: 5.0ms | ActiveRecord: 0.8ms)
|
513
|
-
|
514
|
-
|
515
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:22:41 +1200
|
516
|
-
Processing by PagesController#index as HTML
|
517
|
-
Completed 404 Not Found in 4ms
|
518
|
-
|
519
|
-
ActiveRecord::RecordNotFound (Couldn't find Page without an ID):
|
520
|
-
|
521
|
-
|
522
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
523
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.4ms)
|
524
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.0ms)
|
525
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
526
|
-
|
527
|
-
|
528
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:26:20 +1200
|
529
|
-
Processing by PagesController#index as HTML
|
530
|
-
Completed 404 Not Found in 61ms
|
531
|
-
|
532
|
-
ActiveRecord::RecordNotFound (Couldn't find Page without an ID):
|
533
|
-
|
534
|
-
|
535
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
536
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (16.3ms)
|
537
|
-
Rendered /Users/pbartels/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.7ms)
|
538
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
539
|
-
|
540
|
-
|
541
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:26:58 +1200
|
542
|
-
Processing by PagesController#index as HTML
|
543
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
544
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
545
|
-
Rendered pages/index.html.erb within layouts/application (41.4ms)
|
546
|
-
Completed 200 OK in 107ms (Views: 44.3ms | ActiveRecord: 0.5ms)
|
547
|
-
|
548
|
-
|
549
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:27:00 +1200
|
550
|
-
Processing by PagesController#show as HTML
|
551
|
-
Parameters: {"id"=>"1"}
|
552
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
553
|
-
FROM sqlite_master
|
554
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
555
|
-
[0m
|
556
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
557
|
-
[1m[36mAREL (0.3ms)[0m [1mINSERT INTO "impressions" ("impressionable_type", "impressionable_id", "user_id", "ip_address", "created_at", "updated_at") VALUES ('Page', 1, 1, '127.0.0.1', '2011-07-01 04:27:00.887213', '2011-07-01 04:27:00.887213')[0m
|
558
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
559
|
-
Rendered pages/show.html.erb within layouts/application (18.3ms)
|
560
|
-
Completed 200 OK in 52ms (Views: 21.5ms | ActiveRecord: 0.8ms)
|
561
|
-
|
562
|
-
|
563
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:27:03 +1200
|
564
|
-
Processing by PagesController#index as HTML
|
565
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
566
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
567
|
-
Rendered pages/index.html.erb within layouts/application (15.9ms)
|
568
|
-
Completed 200 OK in 25ms (Views: 18.9ms | ActiveRecord: 0.4ms)
|
569
|
-
|
570
|
-
|
571
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:27:06 +1200
|
572
|
-
Processing by PagesController#show as HTML
|
573
|
-
Parameters: {"id"=>"1"}
|
574
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
575
|
-
[1m[35mAREL (0.2ms)[0m INSERT INTO "impressions" ("impressionable_type", "impressionable_id", "user_id", "ip_address", "created_at", "updated_at") VALUES ('Page', 1, 1, '127.0.0.1', '2011-07-01 04:27:06.497681', '2011-07-01 04:27:06.497681')
|
576
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
577
|
-
Rendered pages/show.html.erb within layouts/application (1.8ms)
|
578
|
-
Completed 200 OK in 49ms (Views: 4.9ms | ActiveRecord: 0.5ms)
|
579
|
-
|
580
|
-
|
581
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:27:10 +1200
|
582
|
-
Processing by PagesController#index as HTML
|
583
|
-
[1m[35mPage Load (0.3ms)[0m SELECT "pages".* FROM "pages"
|
584
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')[0m
|
585
|
-
Rendered pages/index.html.erb within layouts/application (15.8ms)
|
586
|
-
Completed 200 OK in 26ms (Views: 19.1ms | ActiveRecord: 0.4ms)
|
587
|
-
[1m[36mImpressionizer::Impression Load (0.5ms)[0m [1mSELECT "impressions".* FROM "impressions"[0m
|
588
|
-
[1m[35mImpressionizer::Impression Load (0.4ms)[0m SELECT "impressions".* FROM "impressions" LIMIT 1
|
589
|
-
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
590
|
-
FROM sqlite_master
|
591
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
592
|
-
[0m
|
593
|
-
[1m[35mSQL (0.1ms)[0m select sqlite_version(*)
|
594
|
-
[1m[36mSQL (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
595
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
596
|
-
[1m[36mSQL (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
597
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
598
|
-
FROM sqlite_master
|
599
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
600
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
601
|
-
FROM sqlite_master
|
602
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
603
|
-
[0m
|
604
|
-
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
605
|
-
Migrating to CreatePages (20110701011920)
|
606
|
-
[1m[36mSQL (0.3ms)[0m [1mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
|
607
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110701011920')
|
608
|
-
Migrating to CreateImpressions (20110701044058)
|
609
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
610
|
-
FROM sqlite_master
|
611
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
612
|
-
[0m
|
613
|
-
[1m[35mSQL (0.2ms)[0m CREATE TABLE "impressions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "impressionable_type" varchar(255), "impressionable_id" integer, "session_hash" varchar(255), "request_hash" varchar(255), "referrer" varchar(255), "ip_address" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime)
|
614
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110701044058')[0m
|
615
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
616
|
-
FROM sqlite_master
|
617
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
618
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
619
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
620
|
-
FROM sqlite_master
|
621
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
622
|
-
[1m[36mSQL (0.0ms)[0m [1mPRAGMA index_list("impressions")[0m
|
623
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("pages")
|
624
|
-
[1m[36mImpressionizer::Impression Load (0.2ms)[0m [1mSELECT "impressions".* FROM "impressions" LIMIT 1[0m
|
625
|
-
DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from service at /Users/pbartels/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111)
|
626
|
-
|
627
|
-
|
628
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:41:51 +1200
|
629
|
-
Processing by PagesController#index as HTML
|
630
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
631
|
-
Rendered pages/index.html.erb within layouts/application (1.8ms)
|
632
|
-
Completed 200 OK in 67ms (Views: 4.8ms | ActiveRecord: 0.3ms)
|
633
|
-
|
634
|
-
|
635
|
-
Started GET "/pages/new" for 127.0.0.1 at 2011-07-01 16:41:54 +1200
|
636
|
-
Processing by PagesController#new as HTML
|
637
|
-
Rendered pages/_form.html.erb (7.8ms)
|
638
|
-
Rendered pages/new.html.erb within layouts/application (10.1ms)
|
639
|
-
Completed 200 OK in 21ms (Views: 13.5ms | ActiveRecord: 0.0ms)
|
640
|
-
|
641
|
-
|
642
|
-
Started POST "/pages" for 127.0.0.1 at 2011-07-01 16:42:02 +1200
|
643
|
-
Processing by PagesController#create as HTML
|
644
|
-
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1fHsFsD3dMjZu0jMvdNGm7y2cIC8l9bSgMxGNe2El/o=", "page"=>{"title"=>"Test", "body"=>""}, "commit"=>"Create Page"}
|
645
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
646
|
-
FROM sqlite_master
|
647
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
648
|
-
[1m[36mAREL (0.3ms)[0m [1mINSERT INTO "pages" ("title", "body", "created_at", "updated_at") VALUES ('Test', '', '2011-07-01 04:42:02.559080', '2011-07-01 04:42:02.559080')[0m
|
649
|
-
Redirected to http://localhost:3000/pages/1
|
650
|
-
Completed 302 Found in 26ms
|
651
|
-
|
652
|
-
|
653
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:42:02 +1200
|
654
|
-
Processing by PagesController#show as HTML
|
655
|
-
Parameters: {"id"=>"1"}
|
656
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
657
|
-
[1m[36mAREL (0.3ms)[0m [1mINSERT INTO "impressions" ("impressionable_type", "impressionable_id", "session_hash", "request_hash", "referrer", "ip_address", "user_id", "created_at", "updated_at") VALUES ('Page', 1, '33c2a02e415821dbd16b806e478ec2ee', '6a2807da6fec4a1c627e4f22905c36e8635eedadff89c5f4001e5e633bf16641572bcad43b91ee809689582b98757c49da070f1a267208591502a22d689811dd08b665dd3ae2e58aa3b67890d07e60d5c727acab1565d4e377a55d6904cd40996a20157ceefae67a72bb486b897f5529599b05cab1358a842dbbdf8a674c81c11dee709e28b882638360d18b68152332d19958b7a2d2e72f2baa214bda662e4827aeba36108d5c4da27ad6fe63167c8a087944a7a43787c45ab2c2', 'http://localhost:3000/pages/new', '127.0.0.1', NULL, '2011-07-01 04:42:02.635759', '2011-07-01 04:42:02.635759')[0m
|
658
|
-
[1m[35mPage Load (0.1ms)[0m SELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1
|
659
|
-
Rendered pages/show.html.erb within layouts/application (1.9ms)
|
660
|
-
Completed 200 OK in 39ms (Views: 5.0ms | ActiveRecord: 0.5ms)
|
661
|
-
|
662
|
-
|
663
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:42:06 +1200
|
664
|
-
Processing by PagesController#index as HTML
|
665
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
666
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
667
|
-
Rendered pages/index.html.erb within layouts/application (17.1ms)
|
668
|
-
Completed 200 OK in 26ms (Views: 20.1ms | ActiveRecord: 0.4ms)
|
669
|
-
[1m[35mImpressionizer::Impression Load (0.2ms)[0m SELECT "impressions".* FROM "impressions" LIMIT 1
|
670
|
-
|
671
|
-
|
672
|
-
Started GET "/pages/1" for 127.0.0.1 at 2011-07-01 16:42:36 +1200
|
673
|
-
Processing by PagesController#show as HTML
|
674
|
-
Parameters: {"id"=>"1"}
|
675
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
676
|
-
[1m[35mAREL (0.3ms)[0m INSERT INTO "impressions" ("impressionable_type", "impressionable_id", "session_hash", "request_hash", "referrer", "ip_address", "user_id", "created_at", "updated_at") VALUES ('Page', 1, '33c2a02e415821dbd16b806e478ec2ee', 'e6f2584861dcfd587bab5b9793715702eea16d5d7f22cb456e451dd44a03841e9dc0da8b4df8133e6383770c50a3c5180ccabb05bc008d15ada49269dc6a636a0f73aee24a6cfab795b86b3e86806bc5435a423637808e11e5dafd01e43e388929c915715ec4c81fbf355ea5feb42ad2ded9affc8916c27a8fa138285efe6b78d6a9b4760916d7b165a4d6c5cdb6a36927d067e86d8fd8b752e7e779bc0ebc8afeba7ae6bc48bb33c1f89bef4056afa667f6801d7e4992e81ea743', 'http://localhost:3000/pages', '127.0.0.1', NULL, '2011-07-01 04:42:36.681840', '2011-07-01 04:42:36.681840')
|
677
|
-
[1m[36mPage Load (0.1ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
678
|
-
Rendered pages/show.html.erb within layouts/application (1.8ms)
|
679
|
-
Completed 200 OK in 53ms (Views: 4.9ms | ActiveRecord: 0.5ms)
|
680
|
-
|
681
|
-
|
682
|
-
Started GET "/pages" for 127.0.0.1 at 2011-07-01 16:42:38 +1200
|
683
|
-
Processing by PagesController#index as HTML
|
684
|
-
[1m[35mPage Load (0.3ms)[0m SELECT "pages".* FROM "pages"
|
685
|
-
[1m[36mSQL (0.2ms)[0m [1mSELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')[0m
|
686
|
-
Rendered pages/index.html.erb within layouts/application (33.7ms)
|
687
|
-
Completed 200 OK in 43ms (Views: 36.6ms | ActiveRecord: 0.4ms)
|
688
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
689
|
-
FROM sqlite_master
|
690
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
691
|
-
[0m
|
692
|
-
[1m[35mImpressionizer::Impression Load (0.3ms)[0m SELECT "impressions".* FROM "impressions" WHERE "impressions"."id" = 2 LIMIT 1
|
693
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages" LIMIT 1[0m
|
694
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
695
|
-
[1m[36mSQL (0.3ms)[0m [1mSELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address[0m
|
696
|
-
[1m[35mSQL (0.3ms)[0m SELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address
|
697
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages" LIMIT 1[0m
|
698
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address
|
699
|
-
[1m[36mSQL (0.3ms)[0m [1mSELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address[0m
|
700
|
-
[1m[35mImpressionizer::Impression Load (0.7ms)[0m SELECT "impressions".* FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
701
|
-
[1m[36mImpressionizer::Impression Load (0.6ms)[0m [1mSELECT "impressions".* FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address[0m
|
702
|
-
[1m[35mSQL (0.3ms)[0m SELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address
|
703
|
-
[1m[36mSQL (0.3ms)[0m [1mSELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address[0m
|
704
|
-
[1m[35mImpressionizer::Impression Load (0.5ms)[0m SELECT "impressions".* FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address
|
705
|
-
[1m[36mSQL (0.3ms)[0m [1mSELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page') GROUP BY ip_address[0m
|
706
|
-
[1m[35mPage Load (0.4ms)[0m SELECT "pages".* FROM "pages" ORDER BY pages.id DESC LIMIT 1
|
707
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
708
|
-
FROM sqlite_master
|
709
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
710
|
-
[0m
|
711
|
-
[1m[35mAREL (0.2ms)[0m INSERT INTO "pages" ("title", "body", "created_at", "updated_at") VALUES (NULL, NULL, '2011-07-03 23:32:45.133534', '2011-07-03 23:32:45.133534')
|
712
|
-
[1m[36mImpressionizer::Impression Load (0.2ms)[0m [1mSELECT "impressions".* FROM "impressions" WHERE ("impressions".impressionable_id = 2 AND "impressions".impressionable_type = 'Page')[0m
|
713
|
-
[1m[35mSQL (0.4ms)[0m SELECT name
|
714
|
-
FROM sqlite_master
|
715
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
716
|
-
[1m[36mSQL (0.4ms)[0m [1m SELECT name
|
717
|
-
FROM sqlite_master
|
718
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
719
|
-
[0m
|
720
|
-
[1m[35mSQL (0.3ms)[0m SELECT name
|
721
|
-
FROM sqlite_master
|
722
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
723
|
-
[1m[36mSQL (0.4ms)[0m [1m SELECT name
|
724
|
-
FROM sqlite_master
|
725
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
726
|
-
[0m
|
727
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
728
|
-
FROM sqlite_master
|
729
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
730
|
-
[0m
|
731
|
-
[1m[35mSQL (0.4ms)[0m SELECT name
|
732
|
-
FROM sqlite_master
|
733
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
734
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
735
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
736
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 2 AND "impressions".impressionable_type = 'Page')[0m
|
737
|
-
[1m[36mPage Load (0.7ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
738
|
-
[1m[35mSQL (0.4ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
739
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 2 AND "impressions".impressionable_type = 'Page')[0m
|
740
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
741
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
742
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
743
|
-
[1m[36mSQL (0.2ms)[0m [1mSELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 2 AND "impressions".impressionable_type = 'Page')[0m
|
744
|
-
[1m[35mSQL (0.1ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
745
|
-
[1m[36mPage Load (0.5ms)[0m [1mSELECT "pages".* FROM "pages"[0m
|
746
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
747
|
-
[1m[36mSQL (0.2ms)[0m [1mSELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 2 AND "impressions".impressionable_type = 'Page')[0m
|
748
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
749
|
-
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
750
|
-
FROM sqlite_master
|
751
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
752
|
-
[0m
|
753
|
-
[1m[35mImpressionizer::Impression Load (0.3ms)[0m SELECT "impressions".* FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page'
|
754
|
-
[1m[36mImpressionizer::Impression Load (0.5ms)[0m [1mSELECT "impressions".* FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page' GROUP BY ip_address[0m
|
755
|
-
[1m[35mSQL (0.3ms)[0m SELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page' GROUP BY ip_address
|
756
|
-
[1m[36mPage Load (0.4ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 2 LIMIT 1[0m
|
757
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 2 AND "impressions".impressionable_type = 'Page')
|
758
|
-
[1m[36mPage Load (0.3ms)[0m [1mSELECT "pages".* FROM "pages" WHERE "pages"."id" = 1 LIMIT 1[0m
|
759
|
-
[1m[35mSQL (0.2ms)[0m SELECT COUNT(*) FROM "impressions" WHERE ("impressions".impressionable_id = 1 AND "impressions".impressionable_type = 'Page')
|
760
|
-
[1m[36mSQL (0.3ms)[0m [1mSELECT COUNT(*) AS count_all, ip_address AS ip_address FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page' GROUP BY ip_address[0m
|
761
|
-
[1m[35mImpressionizer::Impression Load (0.5ms)[0m SELECT "impressions".* FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page' GROUP BY ip_address
|
762
|
-
[1m[36mImpressionizer::Impression Load (0.5ms)[0m [1mSELECT "impressions".* FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page' GROUP BY impressionable_id[0m
|
763
|
-
[1m[35mImpressionizer::Impression Load (0.6ms)[0m SELECT "impressions".* FROM "impressions" WHERE "impressions"."impressionable_type" = 'Page'
|
764
|
-
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
765
|
-
FROM sqlite_master
|
766
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
767
|
-
[0m
|
768
|
-
[1m[35mSQL (0.3ms)[0m select sqlite_version(*)
|
769
|
-
[1m[36mSQL (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
770
|
-
[1m[35mSQL (0.1ms)[0m PRAGMA index_list("schema_migrations")
|
771
|
-
[1m[36mSQL (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
772
|
-
[1m[35mSQL (0.2ms)[0m SELECT name
|
773
|
-
FROM sqlite_master
|
774
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
775
|
-
[1m[36mSQL (0.2ms)[0m [1m SELECT name
|
776
|
-
FROM sqlite_master
|
777
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
778
|
-
[0m
|
779
|
-
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
780
|
-
Migrating to CreatePages (20110701011920)
|
781
|
-
[1m[36mSQL (0.5ms)[0m [1mCREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
|
782
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20110701011920')
|
783
|
-
Migrating to CreateImpressions (20110701044058)
|
784
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
785
|
-
FROM sqlite_master
|
786
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
787
|
-
[0m
|
788
|
-
[1m[35mSQL (0.2ms)[0m CREATE TABLE "impressions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "impressionable_type" varchar(255), "impressionable_id" integer, "session_hash" varchar(255), "request_hash" varchar(255), "referrer" varchar(255), "ip_address" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime)
|
789
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110701044058')[0m
|
790
|
-
[1m[35mSQL (0.2ms)[0m SELECT name
|
791
|
-
FROM sqlite_master
|
792
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
793
|
-
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
794
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
795
|
-
FROM sqlite_master
|
796
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
797
|
-
[1m[36mSQL (0.0ms)[0m [1mPRAGMA index_list("impressions")[0m
|
798
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("pages")
|
799
|
-
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
800
|
-
[1m[35mSQL (0.1ms)[0m SELECT name
|
801
|
-
FROM sqlite_master
|
802
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
803
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
804
|
-
FROM sqlite_master
|
805
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
806
|
-
[0m
|
807
|
-
[1m[35mSQL (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
808
|
-
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
809
|
-
FROM sqlite_master
|
810
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
811
|
-
[0m
|
812
|
-
[1m[35mSQL (0.0ms)[0m PRAGMA index_list("impressions")
|
813
|
-
[1m[36mSQL (0.0ms)[0m [1mPRAGMA index_list("pages")[0m
|