payola-payments 1.0.7 → 1.0.8

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.
Files changed (52) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/payola/checkout_button.js +12 -8
  3. data/app/assets/javascripts/payola/form.js +70 -0
  4. data/app/controllers/payola/transactions_controller.rb +2 -6
  5. data/app/helpers/payola/price_helper.rb +2 -2
  6. data/app/models/payola/sale.rb +28 -9
  7. data/app/services/payola/charge_card.rb +5 -5
  8. data/app/services/payola/create_sale.rb +4 -3
  9. data/app/views/payola/transactions/_checkout.html.erb +5 -1
  10. data/app/views/payola/transactions/_stripe_header.html.erb +4 -0
  11. data/db/migrate/20141026101628_add_custom_fields_to_payola_sale.rb +5 -0
  12. data/db/migrate/20141026144800_rename_custom_fields_to_signed_custom_fields_on_payola_sale.rb +5 -0
  13. data/lib/payola/version.rb +1 -1
  14. data/spec/controllers/payola/transactions_controller_spec.rb +66 -0
  15. data/spec/dummy/app/controllers/buy_controller.rb +1 -1
  16. data/spec/dummy/app/views/buy/index.html.erb +18 -1
  17. data/spec/dummy/app/views/layouts/application.html.erb +2 -1
  18. data/spec/dummy/config/application.rb +1 -0
  19. data/spec/dummy/config/locales/de.yml +203 -0
  20. data/spec/dummy/db/development.sqlite3 +0 -0
  21. data/spec/dummy/db/schema.rb +2 -1
  22. data/spec/dummy/db/test.sqlite3 +0 -0
  23. data/spec/dummy/log/development.log +2116 -0
  24. data/spec/dummy/log/test.log +18776 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068 +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/1b54952339cbc96811097cee5f8923b4 +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1 +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/96b1ccdc193a02b2bbea195310262fa5 +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/aea159adbc0944b120d91d5b578612ba +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/b20dab973e971c61bc7e334a38453ae0 +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/c5b3877d49b39932a7557611cefca9a6 +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/ca491e325ff6948be9292f701aa4ce64 +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/d3f4b67cc032016dfeebc71f2148b9dc +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982 +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/ddba6e841f28d3005e828fbfffd18b74 +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/df935e399019055729aa968bd7062096 +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1 +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  49. data/spec/helpers/payola/price_helper_spec.rb +17 -0
  50. data/spec/models/payola/sale_spec.rb +15 -0
  51. data/spec/services/payola/create_sale_spec.rb +1 -1
  52. metadata +58 -2
@@ -3,9 +3,10 @@
3
3
  <head>
4
4
  <title>Dummy</title>
5
5
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
6
  <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
7
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
8
8
  <%= csrf_meta_tags %>
9
+ <%= render 'payola/transactions/stripe_header' %>
9
10
  </head>
10
11
  <body data-no-turbolinks="true">
11
12
 
@@ -18,6 +18,7 @@ module Dummy
18
18
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
19
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
20
  # config.i18n.default_locale = :de
21
+ config.i18n.available_locales = [:en, :de]
21
22
  end
22
23
  end
23
24
 
@@ -0,0 +1,203 @@
1
+ # source: https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/de.yml
2
+ de:
3
+ date:
4
+ abbr_day_names:
5
+ - So
6
+ - Mo
7
+ - Di
8
+ - Mi
9
+ - Do
10
+ - Fr
11
+ - Sa
12
+ abbr_month_names:
13
+ -
14
+ - Jan
15
+ - Feb
16
+ - Mär
17
+ - Apr
18
+ - Mai
19
+ - Jun
20
+ - Jul
21
+ - Aug
22
+ - Sep
23
+ - Okt
24
+ - Nov
25
+ - Dez
26
+ day_names:
27
+ - Sonntag
28
+ - Montag
29
+ - Dienstag
30
+ - Mittwoch
31
+ - Donnerstag
32
+ - Freitag
33
+ - Samstag
34
+ formats:
35
+ default: ! '%d.%m.%Y'
36
+ long: ! '%e. %B %Y'
37
+ short: ! '%e. %b'
38
+ month_names:
39
+ -
40
+ - Januar
41
+ - Februar
42
+ - März
43
+ - April
44
+ - Mai
45
+ - Juni
46
+ - Juli
47
+ - August
48
+ - September
49
+ - Oktober
50
+ - November
51
+ - Dezember
52
+ order:
53
+ - :day
54
+ - :month
55
+ - :year
56
+ datetime:
57
+ distance_in_words:
58
+ about_x_hours:
59
+ one: etwa eine Stunde
60
+ other: etwa %{count} Stunden
61
+ about_x_months:
62
+ one: etwa ein Monat
63
+ other: etwa %{count} Monate
64
+ about_x_years:
65
+ one: etwa ein Jahr
66
+ other: etwa %{count} Jahre
67
+ almost_x_years:
68
+ one: fast ein Jahr
69
+ other: fast %{count} Jahre
70
+ half_a_minute: eine halbe Minute
71
+ less_than_x_minutes:
72
+ one: weniger als eine Minute
73
+ other: weniger als %{count} Minuten
74
+ less_than_x_seconds:
75
+ one: weniger als eine Sekunde
76
+ other: weniger als %{count} Sekunden
77
+ over_x_years:
78
+ one: mehr als ein Jahr
79
+ other: mehr als %{count} Jahre
80
+ x_days:
81
+ one: ein Tag
82
+ other: ! '%{count} Tage'
83
+ x_minutes:
84
+ one: eine Minute
85
+ other: ! '%{count} Minuten'
86
+ x_months:
87
+ one: ein Monat
88
+ other: ! '%{count} Monate'
89
+ x_seconds:
90
+ one: eine Sekunde
91
+ other: ! '%{count} Sekunden'
92
+ prompts:
93
+ day: Tag
94
+ hour: Stunden
95
+ minute: Minuten
96
+ month: Monat
97
+ second: Sekunden
98
+ year: Jahr
99
+ errors:
100
+ format: ! '%{attribute} %{message}'
101
+ messages:
102
+ accepted: muss akzeptiert werden
103
+ blank: muss ausgefüllt werden
104
+ present: darf nicht ausgefüllt werden
105
+ confirmation: stimmt nicht mit %{attribute} überein
106
+ empty: muss ausgefüllt werden
107
+ equal_to: muss genau %{count} sein
108
+ even: muss gerade sein
109
+ exclusion: ist nicht verfügbar
110
+ greater_than: muss größer als %{count} sein
111
+ greater_than_or_equal_to: muss größer oder gleich %{count} sein
112
+ inclusion: ist kein gültiger Wert
113
+ invalid: ist nicht gültig
114
+ less_than: muss kleiner als %{count} sein
115
+ less_than_or_equal_to: muss kleiner oder gleich %{count} sein
116
+ not_a_number: ist keine Zahl
117
+ not_an_integer: muss ganzzahlig sein
118
+ odd: muss ungerade sein
119
+ record_invalid: ! 'Gültigkeitsprüfung ist fehlgeschlagen: %{errors}'
120
+ restrict_dependent_destroy:
121
+ one: ! 'Datensatz kann nicht gelöscht werden, da ein abhängiger %{record}-Datensatz existiert.'
122
+ many: ! 'Datensatz kann nicht gelöscht werden, da abhängige %{record} existieren.'
123
+ taken: ist bereits vergeben
124
+ too_long: ist zu lang (mehr als %{count} Zeichen)
125
+ too_short: ist zu kurz (weniger als %{count} Zeichen)
126
+ wrong_length: hat die falsche Länge (muss genau %{count} Zeichen haben)
127
+ other_than: darf nicht gleich %{count} sein
128
+ template:
129
+ body: ! 'Bitte überprüfen Sie die folgenden Felder:'
130
+ header:
131
+ one: ! 'Konnte %{model} nicht speichern: ein Fehler.'
132
+ other: ! 'Konnte %{model} nicht speichern: %{count} Fehler.'
133
+ helpers:
134
+ select:
135
+ prompt: Bitte wählen
136
+ submit:
137
+ create: ! '%{model} erstellen'
138
+ submit: ! '%{model} speichern'
139
+ update: ! '%{model} aktualisieren'
140
+ number:
141
+ currency:
142
+ format:
143
+ delimiter: .
144
+ format: ! '%n %u'
145
+ precision: 2
146
+ separator: ! ','
147
+ significant: false
148
+ strip_insignificant_zeros: false
149
+ unit: €
150
+ format:
151
+ delimiter: .
152
+ precision: 2
153
+ separator: ! ','
154
+ significant: false
155
+ strip_insignificant_zeros: false
156
+ human:
157
+ decimal_units:
158
+ format: ! '%n %u'
159
+ units:
160
+ billion:
161
+ one: Milliarde
162
+ other: Milliarden
163
+ million: Millionen
164
+ quadrillion:
165
+ one: Billiarde
166
+ other: Billiarden
167
+ thousand: Tausend
168
+ trillion: Billionen
169
+ unit: ''
170
+ format:
171
+ delimiter: ''
172
+ precision: 1
173
+ significant: true
174
+ strip_insignificant_zeros: true
175
+ storage_units:
176
+ format: ! '%n %u'
177
+ units:
178
+ byte:
179
+ one: Byte
180
+ other: Bytes
181
+ gb: GB
182
+ kb: KB
183
+ mb: MB
184
+ tb: TB
185
+ percentage:
186
+ format:
187
+ delimiter: ''
188
+ format: "%n%"
189
+ precision:
190
+ format:
191
+ delimiter: ''
192
+ support:
193
+ array:
194
+ last_word_connector: ! ' und '
195
+ two_words_connector: ! ' und '
196
+ words_connector: ! ', '
197
+ time:
198
+ am: vormittags
199
+ formats:
200
+ default: ! '%A, %d. %B %Y, %H:%M Uhr'
201
+ long: ! '%A, %d. %B %Y, %H:%M Uhr'
202
+ short: ! '%d. %B, %H:%M Uhr'
203
+ pm: nachmittags
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20141017233304) do
14
+ ActiveRecord::Schema.define(version: 20141026144800) do
15
15
 
16
16
  create_table "payola_affiliates", force: true do |t|
17
17
  t.string "code"
@@ -52,6 +52,7 @@ ActiveRecord::Schema.define(version: 20141017233304) do
52
52
  t.text "business_address"
53
53
  t.string "stripe_customer_id"
54
54
  t.string "currency"
55
+ t.text "signed_custom_fields"
55
56
  end
56
57
 
57
58
  add_index "payola_sales", ["coupon_id"], name: "index_payola_sales_on_coupon_id"
Binary file
@@ -45,3 +45,2119 @@ Migrations are pending. To resolve this issue, run:
45
45
  Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
46
46
  Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
47
47
  Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (65.2ms)
48
+  (1.0ms) CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime) 
49
+  (0.9ms) CREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime)
50
+  (1.0ms) CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255)) 
51
+  (0.8ms) select sqlite_version(*)
52
+  (1.0ms) CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
53
+  (0.1ms) SELECT sql
54
+ FROM sqlite_master
55
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
56
+ UNION ALL
57
+ SELECT sql
58
+ FROM sqlite_temp_master
59
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
60
+
61
+  (0.9ms) CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
62
+  (0.1ms) SELECT sql
63
+ FROM sqlite_master
64
+ WHERE name='index_payola_sales_on_email' AND type='index'
65
+ UNION ALL
66
+ SELECT sql
67
+ FROM sqlite_temp_master
68
+ WHERE name='index_payola_sales_on_email' AND type='index'
69
+
70
+  (0.1ms)  SELECT sql
71
+ FROM sqlite_master
72
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
73
+ UNION ALL
74
+ SELECT sql
75
+ FROM sqlite_temp_master
76
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
77
+ 
78
+  (0.9ms) CREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")
79
+  (0.1ms)  SELECT sql
80
+ FROM sqlite_master
81
+ WHERE name='index_payola_sales_on_guid' AND type='index'
82
+ UNION ALL
83
+ SELECT sql
84
+ FROM sqlite_temp_master
85
+ WHERE name='index_payola_sales_on_guid' AND type='index'
86
+ 
87
+  (0.1ms) SELECT sql
88
+ FROM sqlite_master
89
+ WHERE name='index_payola_sales_on_email' AND type='index'
90
+ UNION ALL
91
+ SELECT sql
92
+ FROM sqlite_temp_master
93
+ WHERE name='index_payola_sales_on_email' AND type='index'
94
+
95
+  (0.1ms)  SELECT sql
96
+ FROM sqlite_master
97
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
98
+ UNION ALL
99
+ SELECT sql
100
+ FROM sqlite_temp_master
101
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
102
+ 
103
+  (0.9ms) CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
104
+  (0.1ms)  SELECT sql
105
+ FROM sqlite_master
106
+ WHERE name='index_payola_sales_on_product' AND type='index'
107
+ UNION ALL
108
+ SELECT sql
109
+ FROM sqlite_temp_master
110
+ WHERE name='index_payola_sales_on_product' AND type='index'
111
+ 
112
+  (0.1ms) SELECT sql
113
+ FROM sqlite_master
114
+ WHERE name='index_payola_sales_on_guid' AND type='index'
115
+ UNION ALL
116
+ SELECT sql
117
+ FROM sqlite_temp_master
118
+ WHERE name='index_payola_sales_on_guid' AND type='index'
119
+
120
+  (0.1ms)  SELECT sql
121
+ FROM sqlite_master
122
+ WHERE name='index_payola_sales_on_email' AND type='index'
123
+ UNION ALL
124
+ SELECT sql
125
+ FROM sqlite_temp_master
126
+ WHERE name='index_payola_sales_on_email' AND type='index'
127
+ 
128
+  (0.1ms) SELECT sql
129
+ FROM sqlite_master
130
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
131
+ UNION ALL
132
+ SELECT sql
133
+ FROM sqlite_temp_master
134
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
135
+
136
+  (0.9ms) CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
137
+  (1.0ms) CREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime)
138
+  (0.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) 
139
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
140
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
141
+  (0.1ms) SELECT version FROM "schema_migrations"
142
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141017233304')
143
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001230848')
144
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
145
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001203541')
146
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
147
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013701')
148
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
149
+  (1.7ms) CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime) 
150
+  (1.2ms) CREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime)
151
+  (1.0ms) CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255)) 
152
+  (0.2ms) select sqlite_version(*)
153
+  (1.0ms) CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
154
+  (0.1ms) SELECT sql
155
+ FROM sqlite_master
156
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
157
+ UNION ALL
158
+ SELECT sql
159
+ FROM sqlite_temp_master
160
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
161
+
162
+  (0.7ms) CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
163
+  (0.1ms) SELECT sql
164
+ FROM sqlite_master
165
+ WHERE name='index_payola_sales_on_email' AND type='index'
166
+ UNION ALL
167
+ SELECT sql
168
+ FROM sqlite_temp_master
169
+ WHERE name='index_payola_sales_on_email' AND type='index'
170
+
171
+  (0.1ms)  SELECT sql
172
+ FROM sqlite_master
173
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
174
+ UNION ALL
175
+ SELECT sql
176
+ FROM sqlite_temp_master
177
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
178
+ 
179
+  (0.9ms) CREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")
180
+  (0.1ms)  SELECT sql
181
+ FROM sqlite_master
182
+ WHERE name='index_payola_sales_on_guid' AND type='index'
183
+ UNION ALL
184
+ SELECT sql
185
+ FROM sqlite_temp_master
186
+ WHERE name='index_payola_sales_on_guid' AND type='index'
187
+ 
188
+  (0.1ms) SELECT sql
189
+ FROM sqlite_master
190
+ WHERE name='index_payola_sales_on_email' AND type='index'
191
+ UNION ALL
192
+ SELECT sql
193
+ FROM sqlite_temp_master
194
+ WHERE name='index_payola_sales_on_email' AND type='index'
195
+
196
+  (0.1ms)  SELECT sql
197
+ FROM sqlite_master
198
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
199
+ UNION ALL
200
+ SELECT sql
201
+ FROM sqlite_temp_master
202
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
203
+ 
204
+  (0.9ms) CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
205
+  (0.1ms)  SELECT sql
206
+ FROM sqlite_master
207
+ WHERE name='index_payola_sales_on_product' AND type='index'
208
+ UNION ALL
209
+ SELECT sql
210
+ FROM sqlite_temp_master
211
+ WHERE name='index_payola_sales_on_product' AND type='index'
212
+ 
213
+  (0.1ms) SELECT sql
214
+ FROM sqlite_master
215
+ WHERE name='index_payola_sales_on_guid' AND type='index'
216
+ UNION ALL
217
+ SELECT sql
218
+ FROM sqlite_temp_master
219
+ WHERE name='index_payola_sales_on_guid' AND type='index'
220
+
221
+  (0.1ms)  SELECT sql
222
+ FROM sqlite_master
223
+ WHERE name='index_payola_sales_on_email' AND type='index'
224
+ UNION ALL
225
+ SELECT sql
226
+ FROM sqlite_temp_master
227
+ WHERE name='index_payola_sales_on_email' AND type='index'
228
+ 
229
+  (0.1ms) SELECT sql
230
+ FROM sqlite_master
231
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
232
+ UNION ALL
233
+ SELECT sql
234
+ FROM sqlite_temp_master
235
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
236
+
237
+  (0.7ms) CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
238
+  (0.7ms) CREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime)
239
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) 
240
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
241
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
242
+  (0.1ms) SELECT version FROM "schema_migrations"
243
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141017233304')
244
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001230848')
245
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
246
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001203541')
247
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
248
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013701')
249
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
250
+
251
+
252
+ Started GET "/" for 127.0.0.1 at 2014-10-24 15:48:53 -0400
253
+
254
+ ActiveRecord::PendingMigrationError (
255
+
256
+ Migrations are pending. To resolve this issue, run:
257
+
258
+ bin/rake db:migrate RAILS_ENV=development
259
+
260
+ ):
261
+ activerecord (4.1.6) lib/active_record/migration.rb:389:in `check_pending!'
262
+ activerecord (4.1.6) lib/active_record/migration.rb:377:in `call'
263
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
264
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
265
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
266
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
267
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
268
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
269
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
270
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
271
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
272
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
273
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
274
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
275
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
276
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
277
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
278
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
279
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
280
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
281
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
282
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
283
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
284
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
285
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
286
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
287
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
288
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
289
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
290
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
291
+
292
+
293
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.1ms)
294
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
295
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
296
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (21.8ms)
297
+
298
+
299
+ Started GET "/" for 127.0.0.1 at 2014-10-24 15:48:54 -0400
300
+
301
+ ActiveRecord::PendingMigrationError (
302
+
303
+ Migrations are pending. To resolve this issue, run:
304
+
305
+ bin/rake db:migrate RAILS_ENV=development
306
+
307
+ ):
308
+ activerecord (4.1.6) lib/active_record/migration.rb:389:in `check_pending!'
309
+ activerecord (4.1.6) lib/active_record/migration.rb:377:in `call'
310
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
311
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
312
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
313
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
314
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
315
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
316
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
317
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
318
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
319
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
320
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
321
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
322
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
323
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
324
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
325
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
326
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
327
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
328
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
329
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
330
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
331
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
332
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
333
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
334
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
335
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
336
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
337
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
338
+
339
+
340
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
341
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms)
342
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
343
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (62.8ms)
344
+
345
+
346
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 15:48:56 -0400
347
+
348
+ ActiveRecord::PendingMigrationError (
349
+
350
+ Migrations are pending. To resolve this issue, run:
351
+
352
+ bin/rake db:migrate RAILS_ENV=development
353
+
354
+ ):
355
+ activerecord (4.1.6) lib/active_record/migration.rb:389:in `check_pending!'
356
+ activerecord (4.1.6) lib/active_record/migration.rb:377:in `call'
357
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
358
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
359
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
360
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
361
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
362
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
363
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
364
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
365
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
366
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
367
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
368
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
369
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
370
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
371
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
372
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
373
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
374
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
375
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
376
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
377
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
378
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
379
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
380
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
381
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
382
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
383
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
384
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
385
+
386
+
387
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
388
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
389
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
390
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (60.6ms)
391
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
392
+  (0.1ms) select sqlite_version(*)
393
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
394
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
395
+ Migrating to CreateProducts (20141001230848)
396
+  (0.1ms) begin transaction
397
+  (0.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
398
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141001230848"]]
399
+  (0.8ms) commit transaction
400
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
401
+
402
+
403
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 15:49:19 -0400
404
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
405
+ Processing by BuyController#index as HTML
406
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
407
+ Completed 500 Internal Server Error in 82ms
408
+
409
+ ActiveRecord::StatementInvalid (Could not find table 'payola_sales'):
410
+ app/controllers/buy_controller.rb:5:in `index'
411
+
412
+
413
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
414
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
415
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (23.9ms)
416
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (79.8ms)
417
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
418
+  (0.1ms) select sqlite_version(*)
419
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
420
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
421
+ Migrating to CreateProducts (20141001230848)
422
+  (0.1ms) begin transaction
423
+  (0.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
424
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141001230848"]]
425
+  (0.9ms) commit transaction
426
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
427
+
428
+
429
+ Started GET "/" for 127.0.0.1 at 2014-10-24 15:55:10 -0400
430
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
431
+ Processing by Rails::WelcomeController#index as HTML
432
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-4.1.6/lib/rails/templates/rails/welcome/index.html.erb (2.7ms)
433
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)
434
+
435
+
436
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 15:55:11 -0400
437
+ Processing by BuyController#index as HTML
438
+ Product Load (1.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
439
+ Completed 500 Internal Server Error in 70ms
440
+
441
+ ActiveRecord::StatementInvalid (Could not find table 'payola_sales'):
442
+ app/controllers/buy_controller.rb:5:in `index'
443
+
444
+
445
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
446
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms)
447
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (28.7ms)
448
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (80.8ms)
449
+
450
+
451
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 15:56:04 -0400
452
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
453
+ Processing by BuyController#index as HTML
454
+ Product Load (0.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
455
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (11.2ms)
456
+ Rendered buy/index.html.erb within layouts/application (18.9ms)
457
+ Completed 500 Internal Server Error in 130ms
458
+
459
+ ActionView::Template::Error (undefined local variable or method `sellable' for #<#<Class:0x007fb5ef4c5e30>:0x007fb5ef4c52a0>):
460
+ 2: button_class = local_assigns.fetch :button_class, "stripe-button-el"
461
+ 3: button_inner_style = local_assigns.fetch :button_inner_style, 'min-height: 30px'
462
+ 4: button_text = local_assigns.fetch :button_text, "Pay Now"
463
+ 5: description = local_assigns.fetch :description, "#{sellable.name} (#{formatted_price(sellable.price)})"
464
+ 6: name = local_assigns.fetch :name, sellable.name
465
+ 7: product_image_path = local_assigns.fetch :product_image_path , ''
466
+ 8: panel_label = local_assigns.fetch :panel_label, ''
467
+ app/views/buy/index.html.erb:1:in `_app_views_buy_index_html_erb___4496669879835320137_70209668683900'
468
+
469
+
470
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
471
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (22.9ms)
472
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (76.9ms)
473
+
474
+
475
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 15:57:02 -0400
476
+ Processing by BuyController#index as HTML
477
+ Product Load (0.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
478
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (1.7ms)
479
+ Rendered buy/index.html.erb within layouts/application (3.0ms)
480
+ Completed 500 Internal Server Error in 35ms
481
+
482
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
483
+ 2: button_class = local_assigns.fetch :button_class, "stripe-button-el"
484
+ 3: button_inner_style = local_assigns.fetch :button_inner_style, 'min-height: 30px'
485
+ 4: button_text = local_assigns.fetch :button_text, "Pay Now"
486
+ 5: description = local_assigns.fetch :description, "#{sellable.name} (#{formatted_price(sellable.price)})"
487
+ 6: name = local_assigns.fetch :name, sellable.name
488
+ 7: product_image_path = local_assigns.fetch :product_image_path , ''
489
+ 8: panel_label = local_assigns.fetch :panel_label, ''
490
+ app/views/buy/index.html.erb:1:in `_app_views_buy_index_html_erb___4496669879835320137_70209692536660'
491
+
492
+
493
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
494
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (43.2ms)
495
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (58.1ms)
496
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
497
+  (0.1ms) begin transaction
498
+ Product Exists (0.2ms) SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
499
+ SQL (1.0ms) INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-10-24 20:00:30.113720"], ["name", "foo"], ["permalink", "foo"], ["price", 100], ["updated_at", "2014-10-24 20:00:30.113720"]]
500
+  (1.0ms) commit transaction
501
+
502
+
503
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
504
+ Processing by BuyController#index as HTML
505
+ Product Load (3.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
506
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (46.6ms)
507
+ Rendered buy/index.html.erb within layouts/application (49.1ms)
508
+ Completed 200 OK in 205ms (Views: 191.9ms | ActiveRecord: 4.5ms)
509
+
510
+
511
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
512
+
513
+
514
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
515
+
516
+
517
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
518
+
519
+
520
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
521
+
522
+
523
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
524
+
525
+
526
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
527
+
528
+
529
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
530
+
531
+
532
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:39 -0400
533
+
534
+
535
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
536
+ Processing by BuyController#index as HTML
537
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
538
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.3ms)
539
+ Rendered buy/index.html.erb within layouts/application (11.5ms)
540
+ Completed 200 OK in 97ms (Views: 95.6ms | ActiveRecord: 0.2ms)
541
+
542
+
543
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
544
+
545
+
546
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
547
+
548
+
549
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
550
+
551
+
552
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
553
+
554
+
555
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
556
+
557
+
558
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
559
+
560
+
561
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
562
+
563
+
564
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:00:53 -0400
565
+
566
+
567
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:01:31 -0400
568
+ Processing by BuyController#index as HTML
569
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
570
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.7ms)
571
+ Rendered buy/index.html.erb within layouts/application (4.4ms)
572
+ Completed 200 OK in 145ms (Views: 144.1ms | ActiveRecord: 0.2ms)
573
+
574
+
575
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:01:31 -0400
576
+
577
+
578
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:01:31 -0400
579
+
580
+
581
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:01:31 -0400
582
+
583
+
584
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:01:31 -0400
585
+
586
+
587
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:01:31 -0400
588
+
589
+
590
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:01:32 -0400
591
+
592
+
593
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:01:32 -0400
594
+
595
+
596
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:01:32 -0400
597
+
598
+
599
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:01:55 -0400
600
+
601
+ ActionController::RoutingError (No route matches [POST] "/"):
602
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
603
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
604
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
605
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
606
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
607
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
608
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
609
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
610
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
611
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
612
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
613
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
614
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
615
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
616
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
617
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
618
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
619
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
620
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
621
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
622
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
623
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
624
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
625
+
626
+
627
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)
628
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
629
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
630
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
631
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (10.5ms)
632
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (98.9ms)
633
+
634
+
635
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:02:19 -0400
636
+
637
+ ActionController::RoutingError (No route matches [POST] "/"):
638
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
639
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
640
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
641
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
642
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
643
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
644
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
645
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
646
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
647
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
648
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
649
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
650
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
651
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
652
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
653
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
654
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
655
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
656
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
657
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
658
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
659
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
660
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
661
+
662
+
663
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
664
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.9ms)
665
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
666
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
667
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.7ms)
668
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (143.0ms)
669
+
670
+
671
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
672
+ Processing by BuyController#index as HTML
673
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
674
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.4ms)
675
+ Rendered buy/index.html.erb within layouts/application (5.8ms)
676
+ Completed 200 OK in 196ms (Views: 194.6ms | ActiveRecord: 0.2ms)
677
+
678
+
679
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
680
+
681
+
682
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
683
+
684
+
685
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
686
+
687
+
688
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
689
+
690
+
691
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
692
+
693
+
694
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
695
+
696
+
697
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
698
+
699
+
700
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:02:23 -0400
701
+
702
+
703
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:03:38 -0400
704
+ Processing by BuyController#index as HTML
705
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
706
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.2ms)
707
+ Rendered buy/index.html.erb within layouts/application (4.1ms)
708
+ Completed 200 OK in 172ms (Views: 170.4ms | ActiveRecord: 0.2ms)
709
+
710
+
711
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
712
+
713
+
714
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
715
+
716
+
717
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
718
+
719
+
720
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
721
+
722
+
723
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
724
+
725
+
726
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
727
+
728
+
729
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
730
+
731
+
732
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:39 -0400
733
+
734
+
735
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
736
+ Processing by BuyController#index as HTML
737
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
738
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.3ms)
739
+ Rendered buy/index.html.erb within layouts/application (3.5ms)
740
+ Completed 200 OK in 73ms (Views: 71.7ms | ActiveRecord: 0.2ms)
741
+
742
+
743
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
744
+
745
+
746
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
747
+
748
+
749
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
750
+
751
+
752
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
753
+
754
+
755
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
756
+
757
+
758
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
759
+
760
+
761
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:41 -0400
762
+
763
+
764
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:42 -0400
765
+
766
+
767
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
768
+ Processing by BuyController#index as HTML
769
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
770
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.5ms)
771
+ Rendered buy/index.html.erb within layouts/application (4.6ms)
772
+ Completed 200 OK in 54ms (Views: 49.7ms | ActiveRecord: 0.4ms)
773
+
774
+
775
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
776
+
777
+
778
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
779
+
780
+
781
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
782
+
783
+
784
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
785
+
786
+
787
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
788
+
789
+
790
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
791
+
792
+
793
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
794
+
795
+
796
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:03:49 -0400
797
+
798
+
799
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:04:11 -0400
800
+
801
+ ActionController::RoutingError (No route matches [POST] "/"):
802
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
803
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
804
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
805
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
806
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
807
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
808
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
809
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
810
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
811
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
812
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
813
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
814
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
815
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
816
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
817
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
818
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
819
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
820
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
821
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
822
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
823
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
824
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
825
+
826
+
827
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
828
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
829
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
830
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
831
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms)
832
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (162.5ms)
833
+
834
+
835
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:04:20 -0400
836
+
837
+ ActionController::RoutingError (No route matches [POST] "/"):
838
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
839
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
840
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
841
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
842
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
843
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
844
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
845
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
846
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
847
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
848
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
849
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
850
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
851
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
852
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
853
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
854
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
855
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
856
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
857
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
858
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
859
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
860
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
861
+
862
+
863
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
864
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.0ms)
865
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
866
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
867
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
868
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (104.2ms)
869
+
870
+
871
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:04:25 -0400
872
+ Processing by BuyController#index as HTML
873
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
874
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.4ms)
875
+ Rendered buy/index.html.erb within layouts/application (5.9ms)
876
+ Completed 200 OK in 80ms (Views: 78.4ms | ActiveRecord: 0.2ms)
877
+
878
+
879
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
880
+
881
+
882
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
883
+
884
+
885
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
886
+
887
+
888
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
889
+
890
+
891
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
892
+
893
+
894
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
895
+
896
+
897
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
898
+
899
+
900
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:04:26 -0400
901
+
902
+
903
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:04:43 -0400
904
+
905
+ ActionController::RoutingError (No route matches [POST] "/"):
906
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
907
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
908
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
909
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
910
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
911
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
912
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
913
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
914
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
915
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
916
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
917
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
918
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
919
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
920
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
921
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
922
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
923
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
924
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
925
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
926
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
927
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
928
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
929
+
930
+
931
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
932
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
933
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
934
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
935
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
936
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (107.6ms)
937
+
938
+
939
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:06:05 -0400
940
+ Processing by BuyController#index as HTML
941
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
942
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.2ms)
943
+ Rendered buy/index.html.erb within layouts/application (6.9ms)
944
+ Completed 200 OK in 172ms (Views: 171.1ms | ActiveRecord: 0.2ms)
945
+
946
+
947
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
948
+
949
+
950
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
951
+
952
+
953
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
954
+
955
+
956
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
957
+
958
+
959
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
960
+
961
+
962
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
963
+
964
+
965
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
966
+
967
+
968
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:06 -0400
969
+
970
+
971
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:06:27 -0400
972
+
973
+ ActionController::RoutingError (No route matches [POST] "/"):
974
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
975
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
976
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
977
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
978
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
979
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
980
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
981
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
982
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
983
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
984
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
985
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
986
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
987
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
988
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
989
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
990
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
991
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
992
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
993
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
994
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
995
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
996
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
997
+
998
+
999
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
1000
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
1001
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
1002
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
1003
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms)
1004
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (153.4ms)
1005
+
1006
+
1007
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1008
+ Processing by BuyController#index as HTML
1009
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1010
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.7ms)
1011
+ Rendered buy/index.html.erb within layouts/application (5.9ms)
1012
+ Completed 200 OK in 127ms (Views: 125.0ms | ActiveRecord: 0.2ms)
1013
+
1014
+
1015
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1016
+
1017
+
1018
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1019
+
1020
+
1021
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1022
+
1023
+
1024
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1025
+
1026
+
1027
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1028
+
1029
+
1030
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1031
+
1032
+
1033
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1034
+
1035
+
1036
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:06:33 -0400
1037
+
1038
+
1039
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:06:51 -0400
1040
+
1041
+ ActionController::RoutingError (No route matches [POST] "/"):
1042
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1043
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1044
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1045
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1046
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1047
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1048
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1049
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1050
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1051
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1052
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1053
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1054
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1055
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1056
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1057
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1058
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1059
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1060
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1061
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1062
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1063
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1064
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1065
+
1066
+
1067
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms)
1068
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
1069
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
1070
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
1071
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms)
1072
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (136.7ms)
1073
+
1074
+
1075
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1076
+ Processing by BuyController#index as HTML
1077
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1078
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (1.9ms)
1079
+ Rendered buy/index.html.erb within layouts/application (3.0ms)
1080
+ Completed 200 OK in 104ms (Views: 101.7ms | ActiveRecord: 0.3ms)
1081
+
1082
+
1083
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1084
+
1085
+
1086
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1087
+
1088
+
1089
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1090
+
1091
+
1092
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1093
+
1094
+
1095
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1096
+
1097
+
1098
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1099
+
1100
+
1101
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1102
+
1103
+
1104
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:09:14 -0400
1105
+
1106
+
1107
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:09:51 -0400
1108
+
1109
+ ActionController::RoutingError (No route matches [POST] "/"):
1110
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1111
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1112
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1113
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1114
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1115
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1116
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1117
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1118
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1119
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1120
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1121
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1122
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1123
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1124
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1125
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1126
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1127
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1128
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1129
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1130
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1131
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1132
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1133
+
1134
+
1135
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
1136
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
1137
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
1138
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
1139
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms)
1140
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (130.8ms)
1141
+
1142
+
1143
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:18:39 -0400
1144
+ Processing by BuyController#index as HTML
1145
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1146
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.5ms)
1147
+ Rendered buy/index.html.erb within layouts/application (4.0ms)
1148
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.4ms)
1149
+ Completed 200 OK in 155ms (Views: 153.4ms | ActiveRecord: 0.2ms)
1150
+
1151
+
1152
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1153
+
1154
+
1155
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1156
+
1157
+
1158
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1159
+
1160
+
1161
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1162
+
1163
+
1164
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1165
+
1166
+
1167
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1168
+
1169
+
1170
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1171
+
1172
+
1173
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:18:40 -0400
1174
+
1175
+
1176
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:19:57 -0400
1177
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1178
+ Processing by BuyController#index as HTML
1179
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1180
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (142.7ms)
1181
+ Rendered buy/index.html.erb within layouts/application (194.0ms)
1182
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.5ms)
1183
+ Completed 200 OK in 275ms (Views: 261.4ms | ActiveRecord: 1.0ms)
1184
+
1185
+
1186
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1187
+ Processing by BuyController#index as HTML
1188
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1189
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.8ms)
1190
+ Rendered buy/index.html.erb within layouts/application (4.2ms)
1191
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.0ms)
1192
+ Completed 200 OK in 83ms (Views: 82.0ms | ActiveRecord: 0.2ms)
1193
+
1194
+
1195
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1196
+
1197
+
1198
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1199
+
1200
+
1201
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1202
+
1203
+
1204
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1205
+
1206
+
1207
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1208
+
1209
+
1210
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1211
+
1212
+
1213
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1214
+
1215
+
1216
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:02 -0400
1217
+
1218
+
1219
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:20:34 -0400
1220
+ Processing by BuyController#index as HTML
1221
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1222
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.6ms)
1223
+ Rendered buy/index.html.erb within layouts/application (3.9ms)
1224
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1225
+ Completed 200 OK in 93ms (Views: 91.6ms | ActiveRecord: 0.2ms)
1226
+
1227
+
1228
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:20:34 -0400
1229
+
1230
+
1231
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:20:34 -0400
1232
+
1233
+
1234
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:34 -0400
1235
+
1236
+
1237
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:34 -0400
1238
+
1239
+
1240
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:35 -0400
1241
+
1242
+
1243
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:35 -0400
1244
+
1245
+
1246
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:35 -0400
1247
+
1248
+
1249
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:20:35 -0400
1250
+
1251
+
1252
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1253
+ Processing by BuyController#index as HTML
1254
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1255
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (1.9ms)
1256
+ Rendered buy/index.html.erb within layouts/application (3.5ms)
1257
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1258
+ Completed 200 OK in 140ms (Views: 138.9ms | ActiveRecord: 0.3ms)
1259
+
1260
+
1261
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1262
+
1263
+
1264
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1265
+
1266
+
1267
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1268
+
1269
+
1270
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1271
+
1272
+
1273
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1274
+
1275
+
1276
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1277
+
1278
+
1279
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1280
+
1281
+
1282
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:21:13 -0400
1283
+
1284
+
1285
+ Started POST "/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:21:31 -0400
1286
+
1287
+ ActionController::RoutingError (No route matches [POST] "/payola/buy/product/foo"):
1288
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1289
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1290
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1291
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1292
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1293
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1294
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1295
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1296
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1297
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1298
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1299
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1300
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1301
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1302
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1303
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1304
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1305
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1306
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1307
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1308
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1309
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1310
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1311
+
1312
+
1313
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms)
1314
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.text.erb (4.6ms)
1315
+
1316
+
1317
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:24:40 -0400
1318
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1319
+ Processing by BuyController#index as HTML
1320
+ Product Load (0.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1321
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (107.6ms)
1322
+ Rendered buy/index.html.erb within layouts/application (118.9ms)
1323
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.4ms)
1324
+ Completed 200 OK in 260ms (Views: 214.9ms | ActiveRecord: 0.7ms)
1325
+
1326
+
1327
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1328
+
1329
+
1330
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1331
+
1332
+
1333
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1334
+
1335
+
1336
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1337
+
1338
+
1339
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1340
+
1341
+
1342
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1343
+
1344
+
1345
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1346
+
1347
+
1348
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:24:41 -0400
1349
+
1350
+
1351
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:24:59 -0400
1352
+ Processing by Payola::TransactionsController#create as */*
1353
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"6wiHfmeZWKG5UrgLXFw7cSQK0NFLHPAx+oKixg5H3uM=", "stripeEmail"=>"pete@bugsplat.info", "product_class"=>"product", "permalink"=>"foo"}
1354
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
1355
+ Payola::Coupon Load (0.2ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
1356
+ Payola::Affiliate Load (0.4ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
1357
+  (0.1ms) begin transaction
1358
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1359
+  (0.1ms) rollback transaction
1360
+ Completed 400 Bad Request in 189ms (Views: 0.3ms | ActiveRecord: 1.9ms)
1361
+
1362
+
1363
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1364
+ Processing by BuyController#index as HTML
1365
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1366
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.4ms)
1367
+ Rendered buy/index.html.erb within layouts/application (4.2ms)
1368
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1369
+ Completed 200 OK in 63ms (Views: 60.7ms | ActiveRecord: 0.2ms)
1370
+
1371
+
1372
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1373
+
1374
+
1375
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1376
+
1377
+
1378
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1379
+
1380
+
1381
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1382
+
1383
+
1384
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1385
+
1386
+
1387
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1388
+
1389
+
1390
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1391
+
1392
+
1393
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:26:39 -0400
1394
+
1395
+
1396
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1397
+ Processing by BuyController#index as HTML
1398
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1399
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.4ms)
1400
+ Rendered buy/index.html.erb within layouts/application (4.0ms)
1401
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1402
+ Completed 200 OK in 78ms (Views: 76.6ms | ActiveRecord: 0.2ms)
1403
+
1404
+
1405
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1406
+
1407
+
1408
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1409
+
1410
+
1411
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1412
+
1413
+
1414
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1415
+
1416
+
1417
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1418
+
1419
+
1420
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1421
+
1422
+
1423
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1424
+
1425
+
1426
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:27:10 -0400
1427
+
1428
+
1429
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:27:24 -0400
1430
+ Processing by Payola::TransactionsController#create as */*
1431
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"6wiHfmeZWKG5UrgLXFw7cSQK0NFLHPAx+oKixg5H3uM=", "stripeEmail"=>"pete@bugsplat.info", "product_class"=>"product", "permalink"=>"foo"}
1432
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
1433
+ Payola::Coupon Load (0.1ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
1434
+ Payola::Affiliate Load (0.2ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
1435
+  (0.1ms) begin transaction
1436
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1437
+  (0.0ms) rollback transaction
1438
+ Completed 400 Bad Request in 136ms (Views: 0.3ms | ActiveRecord: 0.8ms)
1439
+
1440
+
1441
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1442
+ Processing by BuyController#index as HTML
1443
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1444
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (1.9ms)
1445
+ Rendered buy/index.html.erb within layouts/application (3.1ms)
1446
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1447
+ Completed 200 OK in 118ms (Views: 117.4ms | ActiveRecord: 0.2ms)
1448
+
1449
+
1450
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1451
+
1452
+
1453
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1454
+
1455
+
1456
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1457
+
1458
+
1459
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1460
+
1461
+
1462
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1463
+
1464
+
1465
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1466
+
1467
+
1468
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1469
+
1470
+
1471
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:45:18 -0400
1472
+
1473
+
1474
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:45:33 -0400
1475
+ Processing by Payola::TransactionsController#create as */*
1476
+ Parameters: {"stripeToken"=>"tok_14rEwDDpyMZVJxV9Hf80YEcn", "stripeEmail"=>"pete@bugsplat.info", "product_class"=>"product", "permalink"=>"foo"}
1477
+ Can't verify CSRF token authenticity
1478
+ Completed 422 Unprocessable Entity in 1ms
1479
+
1480
+ ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
1481
+ actionpack (4.1.6) lib/action_controller/metal/request_forgery_protection.rb:176:in `handle_unverified_request'
1482
+ actionpack (4.1.6) lib/action_controller/metal/request_forgery_protection.rb:202:in `handle_unverified_request'
1483
+ actionpack (4.1.6) lib/action_controller/metal/request_forgery_protection.rb:197:in `verify_authenticity_token'
1484
+ activesupport (4.1.6) lib/active_support/callbacks.rb:424:in `block in make_lambda'
1485
+ activesupport (4.1.6) lib/active_support/callbacks.rb:160:in `call'
1486
+ activesupport (4.1.6) lib/active_support/callbacks.rb:160:in `block in halting'
1487
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'
1488
+ activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'
1489
+ actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
1490
+ actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
1491
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
1492
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'
1493
+ activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
1494
+ activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'
1495
+ actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
1496
+ actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
1497
+ activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
1498
+ actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'
1499
+ actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'
1500
+ actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'
1501
+ actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
1502
+ actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'
1503
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'
1504
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
1505
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'
1506
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
1507
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
1508
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
1509
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
1510
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1511
+ railties (4.1.6) lib/rails/railtie.rb:194:in `public_send'
1512
+ railties (4.1.6) lib/rails/railtie.rb:194:in `method_missing'
1513
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
1514
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
1515
+ actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
1516
+ actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
1517
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
1518
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
1519
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
1520
+ actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
1521
+ actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
1522
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
1523
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
1524
+ actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
1525
+ activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
1526
+ activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
1527
+ activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
1528
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
1529
+ activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
1530
+ actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
1531
+ actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
1532
+ actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
1533
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
1534
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1535
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1536
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1537
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1538
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1539
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1540
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1541
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1542
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1543
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1544
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1545
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1546
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1547
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1548
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1549
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1550
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1551
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1552
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1553
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1554
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1555
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1556
+
1557
+
1558
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.1ms)
1559
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.8ms)
1560
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (1.1ms)
1561
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb (71.3ms)
1562
+
1563
+
1564
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:50:10 -0400
1565
+ Processing by BuyController#index as HTML
1566
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1567
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (2.1ms)
1568
+ Rendered buy/index.html.erb within layouts/application (3.6ms)
1569
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1570
+ Completed 200 OK in 129ms (Views: 127.8ms | ActiveRecord: 0.2ms)
1571
+
1572
+
1573
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:50:10 -0400
1574
+
1575
+
1576
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:50:10 -0400
1577
+
1578
+
1579
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:10 -0400
1580
+
1581
+
1582
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:10 -0400
1583
+
1584
+
1585
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:11 -0400
1586
+
1587
+
1588
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:11 -0400
1589
+
1590
+
1591
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:11 -0400
1592
+
1593
+
1594
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:11 -0400
1595
+
1596
+
1597
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:50:27 -0400
1598
+ Processing by Payola::TransactionsController#create as */*
1599
+ Parameters: {"stripeToken"=>"tok_14rF0xDpyMZVJxV9zgP97t6C", "stripeEmail"=>"pete@bugsplat.info", "authenticity_token"=>"6wiHfmeZWKG5UrgLXFw7cSQK0NFLHPAx+oKixg5H3uM=", "product_class"=>"product", "permalink"=>"foo"}
1600
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
1601
+ Payola::Coupon Load (0.2ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
1602
+ Payola::Affiliate Load (0.1ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
1603
+  (0.1ms) begin transaction
1604
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1605
+ CACHE (0.0ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1606
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '1v2hth' LIMIT 1
1607
+ SQL (0.8ms) INSERT INTO "payola_sales" ("amount", "created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-10-24 20:50:28.064239"], ["currency", "usd"], ["email", "pete@bugsplat.info"], ["guid", "1v2hth"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_14rF0xDpyMZVJxV9zgP97t6C"], ["updated_at", "2014-10-24 20:50:28.064239"]]
1608
+  (5.9ms) commit transaction
1609
+ Completed 200 OK in 355ms (Views: 0.4ms | ActiveRecord: 7.6ms)
1610
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '1v2hth' ORDER BY "payola_sales"."id" ASC LIMIT 1
1611
+  (0.1ms) begin transaction
1612
+ SQL (0.5ms) UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1
1613
+
1614
+
1615
+ Started GET "/undefined/status/1v2hth" for 127.0.0.1 at 2014-10-24 16:50:28 -0400
1616
+
1617
+ ActionController::RoutingError (No route matches [GET] "/undefined/status/1v2hth"):
1618
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1619
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1620
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1621
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1622
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1623
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1624
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1625
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1626
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1627
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1628
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1629
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1630
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1631
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1632
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1633
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1634
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1635
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1636
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1637
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1638
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1639
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1640
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1641
+
1642
+
1643
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '1v2hth' AND "payola_sales"."id" != 1) LIMIT 1
1644
+ SQL (0.1ms) UPDATE "payola_sales" SET "state" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["state", "processing"], ["updated_at", "2014-10-24 20:50:28.498900"]]
1645
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.7ms)
1646
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.text.erb (62.8ms)
1647
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '1v2hth' AND "payola_sales"."id" != 1) LIMIT 1
1648
+ SQL (0.2ms) UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["card_expiration", "2034-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 33], ["stripe_customer_id", "cus_51HaSWCD64X7ii"], ["stripe_id", "ch_14rF0zDpyMZVJxV9h51YbGRx"], ["updated_at", "2014-10-24 20:50:30.964672"]]
1649
+  (0.1ms) SAVEPOINT active_record_1
1650
+ SQL (1.2ms) UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
1651
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
1652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1653
+  (0.9ms) commit transaction
1654
+
1655
+
1656
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:50:55 -0400
1657
+ Processing by BuyController#index as HTML
1658
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1659
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.5ms)
1660
+ Rendered buy/index.html.erb within layouts/application (5.1ms)
1661
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1662
+ Completed 200 OK in 128ms (Views: 125.7ms | ActiveRecord: 0.6ms)
1663
+
1664
+
1665
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1666
+
1667
+
1668
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1669
+
1670
+
1671
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1672
+
1673
+
1674
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1675
+
1676
+
1677
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1678
+
1679
+
1680
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1681
+
1682
+
1683
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1684
+
1685
+
1686
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:50:56 -0400
1687
+
1688
+
1689
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:51:07 -0400
1690
+ Processing by Payola::TransactionsController#create as */*
1691
+ Parameters: {"stripeToken"=>"tok_14rF1bDpyMZVJxV9C5GT9wMk", "stripeEmail"=>"pete@bugsplat.info", "authenticity_token"=>"6wiHfmeZWKG5UrgLXFw7cSQK0NFLHPAx+oKixg5H3uM=", "product_class"=>"product", "permalink"=>"foo"}
1692
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
1693
+ Payola::Coupon Load (0.2ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
1694
+ Payola::Affiliate Load (1.7ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
1695
+  (0.2ms) begin transaction
1696
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1697
+ CACHE (0.0ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1698
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' LIMIT 1
1699
+ SQL (0.4ms) INSERT INTO "payola_sales" ("amount", "created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-10-24 20:51:08.133946"], ["currency", "usd"], ["email", "pete@bugsplat.info"], ["guid", "c6jbbp"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_14rF1bDpyMZVJxV9C5GT9wMk"], ["updated_at", "2014-10-24 20:51:08.133946"]]
1700
+  (2.3ms) commit transaction
1701
+ Completed 200 OK in 283ms (Views: 0.3ms | ActiveRecord: 5.6ms)
1702
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' ORDER BY "payola_sales"."id" ASC LIMIT 1
1703
+  (0.1ms) begin transaction
1704
+
1705
+ SQL (0.5ms) UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 2
1706
+
1707
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'c6jbbp' AND "payola_sales"."id" != 2) LIMIT 1
1708
+ Started GET "/subdir/payola/status/c6jbbp" for 127.0.0.1 at 2014-10-24 16:51:08 -0400
1709
+ SQL (0.1ms) UPDATE "payola_sales" SET "state" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 2 [["state", "processing"], ["updated_at", "2014-10-24 20:51:08.268137"]]
1710
+ Processing by Payola::TransactionsController#status as */*
1711
+ Parameters: {"guid"=>"c6jbbp"}
1712
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' ORDER BY "payola_sales"."id" ASC LIMIT 1
1713
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.4ms)
1714
+
1715
+
1716
+ Started GET "/subdir/payola/status/c6jbbp" for 127.0.0.1 at 2014-10-24 16:51:08 -0400
1717
+ Processing by Payola::TransactionsController#status as */*
1718
+ Parameters: {"guid"=>"c6jbbp"}
1719
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' ORDER BY "payola_sales"."id" ASC LIMIT 1
1720
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1721
+
1722
+
1723
+ Started GET "/subdir/payola/status/c6jbbp" for 127.0.0.1 at 2014-10-24 16:51:09 -0400
1724
+ Processing by Payola::TransactionsController#status as */*
1725
+ Parameters: {"guid"=>"c6jbbp"}
1726
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' ORDER BY "payola_sales"."id" ASC LIMIT 1
1727
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1728
+
1729
+
1730
+ Started GET "/subdir/payola/status/c6jbbp" for 127.0.0.1 at 2014-10-24 16:51:10 -0400
1731
+ Processing by Payola::TransactionsController#status as */*
1732
+ Parameters: {"guid"=>"c6jbbp"}
1733
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' ORDER BY "payola_sales"."id" ASC LIMIT 1
1734
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1735
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'c6jbbp' AND "payola_sales"."id" != 2) LIMIT 1
1736
+ SQL (0.2ms) UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 2 [["card_expiration", "2034-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 33], ["stripe_customer_id", "cus_51Haa02oV95sKB"], ["stripe_id", "ch_14rF1dDpyMZVJxV9CmaAzs8b"], ["updated_at", "2014-10-24 20:51:10.511057"]]
1737
+  (0.1ms) SAVEPOINT active_record_1
1738
+ SQL (0.7ms) UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 2
1739
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
1740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1741
+  (2.2ms) commit transaction
1742
+
1743
+
1744
+ Started GET "/subdir/payola/status/c6jbbp" for 127.0.0.1 at 2014-10-24 16:51:10 -0400
1745
+ Processing by Payola::TransactionsController#status as */*
1746
+ Parameters: {"guid"=>"c6jbbp"}
1747
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'c6jbbp' ORDER BY "payola_sales"."id" ASC LIMIT 1
1748
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1749
+
1750
+
1751
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:51:10 -0400
1752
+
1753
+ ActionController::RoutingError (No route matches [POST] "/"):
1754
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1755
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1756
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1757
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1758
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1759
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1760
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1761
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1762
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1763
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1764
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1765
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1766
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1767
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1768
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1769
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1770
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1771
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1772
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1773
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1774
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1775
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1776
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1777
+
1778
+
1779
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms)
1780
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
1781
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
1782
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
1783
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (11.1ms)
1784
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (124.3ms)
1785
+
1786
+
1787
+ Started GET "/buy" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1788
+ Processing by BuyController#index as HTML
1789
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1790
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.0ms)
1791
+ Rendered buy/index.html.erb within layouts/application (4.9ms)
1792
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1793
+ Completed 200 OK in 135ms (Views: 133.5ms | ActiveRecord: 0.3ms)
1794
+
1795
+
1796
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1797
+
1798
+
1799
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1800
+
1801
+
1802
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1803
+
1804
+
1805
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1806
+
1807
+
1808
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1809
+
1810
+
1811
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1812
+
1813
+
1814
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-24 16:53:26 -0400
1815
+
1816
+
1817
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-24 16:53:27 -0400
1818
+
1819
+
1820
+ Started POST "/subdir/payola/buy/product/foo" for 127.0.0.1 at 2014-10-24 16:53:41 -0400
1821
+ Processing by Payola::TransactionsController#create as */*
1822
+ Parameters: {"stripeToken"=>"tok_14rF45DpyMZVJxV9aT7V54TK", "stripeEmail"=>"pete@bugsplat.info", "authenticity_token"=>"6wiHfmeZWKG5UrgLXFw7cSQK0NFLHPAx+oKixg5H3uM=", "product_class"=>"product", "permalink"=>"foo"}
1823
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo' LIMIT 1
1824
+ Payola::Coupon Load (0.2ms) SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
1825
+ Payola::Affiliate Load (0.1ms) SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
1826
+  (0.1ms) begin transaction
1827
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1828
+ CACHE (0.0ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
1829
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' LIMIT 1
1830
+ SQL (0.6ms) INSERT INTO "payola_sales" ("amount", "created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", "2014-10-24 20:53:42.156020"], ["currency", "usd"], ["email", "pete@bugsplat.info"], ["guid", "fmd7nk"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_14rF45DpyMZVJxV9aT7V54TK"], ["updated_at", "2014-10-24 20:53:42.156020"]]
1831
+  (2.2ms) commit transaction
1832
+ Completed 200 OK in 297ms (Views: 0.2ms | ActiveRecord: 3.8ms)
1833
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' ORDER BY "payola_sales"."id" ASC LIMIT 1
1834
+  (0.1ms) begin transaction
1835
+
1836
+ SQL (0.3ms) UPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 3
1837
+
1838
+ Payola::Sale Exists (0.1ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'fmd7nk' AND "payola_sales"."id" != 3) LIMIT 1
1839
+ Started GET "/subdir/payola/status/fmd7nk" for 127.0.0.1 at 2014-10-24 16:53:42 -0400
1840
+ SQL (0.1ms) UPDATE "payola_sales" SET "state" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 3 [["state", "processing"], ["updated_at", "2014-10-24 20:53:42.258338"]]
1841
+ Processing by Payola::TransactionsController#status as */*
1842
+ Parameters: {"guid"=>"fmd7nk"}
1843
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' ORDER BY "payola_sales"."id" ASC LIMIT 1
1844
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1845
+
1846
+
1847
+ Started GET "/subdir/payola/status/fmd7nk" for 127.0.0.1 at 2014-10-24 16:53:42 -0400
1848
+ Processing by Payola::TransactionsController#status as */*
1849
+ Parameters: {"guid"=>"fmd7nk"}
1850
+ Payola::Sale Load (0.4ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' ORDER BY "payola_sales"."id" ASC LIMIT 1
1851
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
1852
+
1853
+
1854
+ Started GET "/subdir/payola/status/fmd7nk" for 127.0.0.1 at 2014-10-24 16:53:43 -0400
1855
+ Processing by Payola::TransactionsController#status as */*
1856
+ Parameters: {"guid"=>"fmd7nk"}
1857
+ Payola::Sale Load (0.2ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' ORDER BY "payola_sales"."id" ASC LIMIT 1
1858
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1859
+
1860
+
1861
+ Started GET "/subdir/payola/status/fmd7nk" for 127.0.0.1 at 2014-10-24 16:53:44 -0400
1862
+ Processing by Payola::TransactionsController#status as */*
1863
+ Parameters: {"guid"=>"fmd7nk"}
1864
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' ORDER BY "payola_sales"."id" ASC LIMIT 1
1865
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1866
+ Payola::Sale Exists (0.2ms) SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'fmd7nk' AND "payola_sales"."id" != 3) LIMIT 1
1867
+ SQL (0.3ms) UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 3 [["card_expiration", "2034-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 33], ["stripe_customer_id", "cus_51HdNSPn0zJj4Q"], ["stripe_id", "ch_14rF47DpyMZVJxV911dIpIYX"], ["updated_at", "2014-10-24 20:53:44.712072"]]
1868
+  (0.1ms) SAVEPOINT active_record_1
1869
+
1870
+ SQL (0.4ms) UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 3
1871
+
1872
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 1]]
1873
+ Started GET "/subdir/payola/status/fmd7nk" for 127.0.0.1 at 2014-10-24 16:53:44 -0400
1874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1875
+ Processing by Payola::TransactionsController#status as */*
1876
+  (2.0ms) commit transaction
1877
+ Parameters: {"guid"=>"fmd7nk"}
1878
+ Payola::Sale Load (0.3ms) SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'fmd7nk' ORDER BY "payola_sales"."id" ASC LIMIT 1
1879
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1880
+
1881
+
1882
+ Started POST "/" for 127.0.0.1 at 2014-10-24 16:53:45 -0400
1883
+
1884
+ ActionController::RoutingError (No route matches [POST] "/"):
1885
+ actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1886
+ actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
1887
+ railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
1888
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
1889
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
1890
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
1891
+ activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
1892
+ railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
1893
+ actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
1894
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
1895
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
1896
+ activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
1897
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1898
+ actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
1899
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
1900
+ railties (4.1.6) lib/rails/engine.rb:514:in `call'
1901
+ railties (4.1.6) lib/rails/application.rb:144:in `call'
1902
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
1903
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
1904
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
1905
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1906
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1907
+ /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1908
+
1909
+
1910
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
1911
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.9ms)
1912
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
1913
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
1914
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
1915
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (150.3ms)
1916
+
1917
+
1918
+ Started GET "/" for 127.0.0.1 at 2014-10-25 09:14:00 -0400
1919
+ Processing by Rails::WelcomeController#index as HTML
1920
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-4.1.6/lib/rails/templates/rails/welcome/index.html.erb (2.8ms)
1921
+ Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms)
1922
+
1923
+
1924
+ Started GET "/" for 127.0.0.1 at 2014-10-25 22:07:03 -0400
1925
+ Processing by Rails::WelcomeController#index as HTML
1926
+ Rendered /Users/peter/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-4.1.6/lib/rails/templates/rails/welcome/index.html.erb (0.1ms)
1927
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
1928
+ Terminating 3 actors...
1929
+
1930
+
1931
+ Started GET "/buy" for 127.0.0.1 at 2014-10-26 09:39:07 -0400
1932
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1933
+ Processing by BuyController#index as HTML
1934
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1935
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (145.6ms)
1936
+ Rendered buy/index.html.erb within layouts/application (154.4ms)
1937
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.5ms)
1938
+ Completed 200 OK in 359ms (Views: 307.5ms | ActiveRecord: 1.2ms)
1939
+
1940
+
1941
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1942
+
1943
+
1944
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1945
+
1946
+
1947
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1948
+
1949
+
1950
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1951
+
1952
+
1953
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1954
+
1955
+
1956
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1957
+
1958
+
1959
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1960
+
1961
+
1962
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:08 -0400
1963
+
1964
+
1965
+ Started GET "/buy" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1966
+ Processing by BuyController#index as HTML
1967
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
1968
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (3.2ms)
1969
+ Rendered buy/index.html.erb within layouts/application (5.2ms)
1970
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
1971
+ Completed 200 OK in 92ms (Views: 83.3ms | ActiveRecord: 0.4ms)
1972
+
1973
+
1974
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1975
+
1976
+
1977
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1978
+
1979
+
1980
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1981
+
1982
+
1983
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1984
+
1985
+
1986
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1987
+
1988
+
1989
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1990
+
1991
+
1992
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:44 -0400
1993
+
1994
+
1995
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:39:45 -0400
1996
+
1997
+
1998
+ Started GET "/buy" for 127.0.0.1 at 2014-10-26 09:40:25 -0400
1999
+ Processing by BuyController#index as HTML
2000
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2001
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (6.0ms)
2002
+ Rendered buy/index.html.erb within layouts/application (7.7ms)
2003
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2004
+ Completed 200 OK in 62ms (Views: 60.1ms | ActiveRecord: 0.3ms)
2005
+
2006
+
2007
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2008
+
2009
+
2010
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2011
+
2012
+
2013
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2014
+
2015
+
2016
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2017
+
2018
+
2019
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2020
+
2021
+
2022
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2023
+
2024
+
2025
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2026
+
2027
+
2028
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:40:26 -0400
2029
+
2030
+
2031
+ Started GET "/buy" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2032
+ Processing by BuyController#index as HTML
2033
+ Product Load (0.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1
2034
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_checkout.html.erb (4.0ms)
2035
+ Rendered buy/index.html.erb within layouts/application (5.4ms)
2036
+ Rendered /Users/peter/devel/payola/app/views/payola/transactions/_stripe_header.html.erb (0.1ms)
2037
+ Completed 200 OK in 84ms (Views: 82.8ms | ActiveRecord: 0.2ms)
2038
+
2039
+
2040
+ Started GET "/assets/buy.css?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2041
+
2042
+
2043
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2044
+
2045
+
2046
+ Started GET "/assets/payola/checkout_button.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2047
+
2048
+
2049
+ Started GET "/assets/payola/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2050
+
2051
+
2052
+ Started GET "/assets/payola/form.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2053
+
2054
+
2055
+ Started GET "/assets/buy.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2056
+
2057
+
2058
+ Started GET "/assets/payola.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2059
+
2060
+
2061
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-26 09:41:01 -0400
2062
+  (3.0ms) CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime) 
2063
+  (0.8ms) CREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime)
2064
+  (0.8ms) CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255), "custom_fields" text) 
2065
+  (0.2ms) select sqlite_version(*)
2066
+  (0.9ms) CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
2067
+  (0.1ms) SELECT sql
2068
+ FROM sqlite_master
2069
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2070
+ UNION ALL
2071
+ SELECT sql
2072
+ FROM sqlite_temp_master
2073
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2074
+
2075
+  (0.8ms) CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
2076
+  (0.1ms) SELECT sql
2077
+ FROM sqlite_master
2078
+ WHERE name='index_payola_sales_on_email' AND type='index'
2079
+ UNION ALL
2080
+ SELECT sql
2081
+ FROM sqlite_temp_master
2082
+ WHERE name='index_payola_sales_on_email' AND type='index'
2083
+
2084
+  (0.1ms)  SELECT sql
2085
+ FROM sqlite_master
2086
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2087
+ UNION ALL
2088
+ SELECT sql
2089
+ FROM sqlite_temp_master
2090
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2091
+ 
2092
+  (0.8ms) CREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")
2093
+  (0.1ms)  SELECT sql
2094
+ FROM sqlite_master
2095
+ WHERE name='index_payola_sales_on_guid' AND type='index'
2096
+ UNION ALL
2097
+ SELECT sql
2098
+ FROM sqlite_temp_master
2099
+ WHERE name='index_payola_sales_on_guid' AND type='index'
2100
+ 
2101
+  (0.1ms) SELECT sql
2102
+ FROM sqlite_master
2103
+ WHERE name='index_payola_sales_on_email' AND type='index'
2104
+ UNION ALL
2105
+ SELECT sql
2106
+ FROM sqlite_temp_master
2107
+ WHERE name='index_payola_sales_on_email' AND type='index'
2108
+
2109
+  (0.1ms)  SELECT sql
2110
+ FROM sqlite_master
2111
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2112
+ UNION ALL
2113
+ SELECT sql
2114
+ FROM sqlite_temp_master
2115
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2116
+ 
2117
+  (0.9ms) CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
2118
+  (0.1ms)  SELECT sql
2119
+ FROM sqlite_master
2120
+ WHERE name='index_payola_sales_on_product' AND type='index'
2121
+ UNION ALL
2122
+ SELECT sql
2123
+ FROM sqlite_temp_master
2124
+ WHERE name='index_payola_sales_on_product' AND type='index'
2125
+ 
2126
+  (0.1ms) SELECT sql
2127
+ FROM sqlite_master
2128
+ WHERE name='index_payola_sales_on_guid' AND type='index'
2129
+ UNION ALL
2130
+ SELECT sql
2131
+ FROM sqlite_temp_master
2132
+ WHERE name='index_payola_sales_on_guid' AND type='index'
2133
+
2134
+  (0.1ms)  SELECT sql
2135
+ FROM sqlite_master
2136
+ WHERE name='index_payola_sales_on_email' AND type='index'
2137
+ UNION ALL
2138
+ SELECT sql
2139
+ FROM sqlite_temp_master
2140
+ WHERE name='index_payola_sales_on_email' AND type='index'
2141
+ 
2142
+  (0.1ms) SELECT sql
2143
+ FROM sqlite_master
2144
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2145
+ UNION ALL
2146
+ SELECT sql
2147
+ FROM sqlite_temp_master
2148
+ WHERE name='index_payola_sales_on_coupon_id' AND type='index'
2149
+
2150
+  (0.9ms) CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
2151
+  (0.8ms) CREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime)
2152
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime) 
2153
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2154
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2155
+  (0.2ms) SELECT version FROM "schema_migrations"
2156
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
2157
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001230848')
2158
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
2159
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141001203541')
2160
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
2161
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002013701')
2162
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
2163
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141017233304')