pdfcraft 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f54e8e2001f880ef78adeed73787e729b2d5da32
4
- data.tar.gz: 176111e09a1886d79753aec70bc45b7eab60dd78
3
+ metadata.gz: 908efd36036ca8684484cd9e61f88161537c46df
4
+ data.tar.gz: 77ddf2df5ff08dece86a44c792de187588074b01
5
5
  SHA512:
6
- metadata.gz: 4c29e48960dd9669fccf480a97a29417de39b4a601bb36c68b27c5bc75c438a80de700c39a0acd5d9746f2f44d0a1db5fd5b2838a259c07abd36948e1ff4c667
7
- data.tar.gz: ae432a87e38c4aeccb1d5c24eb69e823101a42395b78f62c364ddadffa094af9b2f7eb05ddaa98929d571621d9b4a5bc387df5fd622cb431cd84305f3df780c6
6
+ metadata.gz: c9e1802b85658629d3d77067db52051895226f9d8e4e3b3f3fd36bb377ae4262a07d0b0d141a3594a3860487502d2709890ff24d78afc3a3c1e6362f0630a8e0
7
+ data.tar.gz: 10c82348af6a30005447cadc89a00d3ecf4f84b2c739981f07aece4bce09a7119c2f94af1d6f3f3b612a5637a4dab34dea4e9f61df2bde7ab0c70a7e14ae667c
@@ -0,0 +1,7 @@
1
+ == 1.0.0
2
+ * Replaced pdf ivar (@pdf) in views with configurable variable.
3
+
4
+
5
+ == 0.0.1
6
+ * Initial release.
7
+ * Basic page rendering through Rails views.
@@ -28,19 +28,19 @@ From your controllers:
28
28
  Create view templates just like you would for any other view format. Use file
29
29
  extension .pdfcraft for the pdfcraft template handler.
30
30
 
31
- Pdfcraft initializes an ivar named @pdf the holds the PDF document you are
32
- building.
31
+ By default, Pdfcraft gives you access to the pdf document through a variable
32
+ named 'pdf'.
33
33
 
34
- @pdf.text "This will be rendered in a PDF"
34
+ pdf.text "This will be rendered in a PDF"
35
35
 
36
36
  Since Pdfcraft is built on Rails' templating and rendering, this means that
37
37
  partials, layouts, and helpers are all at yout disposal.
38
38
 
39
- @pdf.text "This is a template"
39
+ pdf.text "This is a template"
40
40
 
41
41
  render partial: 'aggregates'
42
42
 
43
- Pdfcraft uses Prawn as the rendering engine. For the time being, the @pdf
43
+ Pdfcraft uses Prawn as the rendering engine. For the time being, the pdf
44
44
  object delgates directly to a Prawn::Document object, so refer to Prawn's API
45
45
  documentation for how to construct a PDF.
46
46
 
@@ -49,13 +49,32 @@ the #page_config method. This method takes all of the options that
49
49
  Prawn::Document#new does, and can only be called once before any other method
50
50
  on Pdfcraft::Document. This is how you can configure the PDF layout options.
51
51
 
52
- @pdf.page_config page_layout: :landscape
52
+ pdf.page_config page_layout: :landscape
53
53
 
54
54
  One you've started constructing the document, calls to #page_config will be
55
55
  ignored. There is also a version of #page_config named #page_config! (notice
56
56
  the bang). Using #page_config! will raise an exception if PDF document
57
57
  construction has already begun.
58
58
 
59
+ === Configuration
60
+
61
+ If, for some reason, you don't want to use the 'pdf' variable name (perhaps you
62
+ have a name collision), you can configure the variable to be named anything you
63
+ want.
64
+
65
+ Create an initializer and set the Pdfcraft#varibale_name value:
66
+
67
+ # config/initializers/pdfcraft.rb
68
+ Pdfcraft.varibale_name = 'gummi_bears'
69
+
70
+ Then you can refernce your pdf document from your views using this variable
71
+ name instead:
72
+
73
+ # app/views/a_controller/a_view.pdf.pdfcraft
74
+ gummi_bears.move_down 20
75
+ gummi_bears.text "Get in ma belly!"
76
+
77
+
59
78
  === A Note About render_to_string
60
79
 
61
80
  The contract for render_to_string requires that this method returns a string.
@@ -2,4 +2,9 @@ require 'pdfcraft/pdf_renderer'
2
2
  require 'pdfcraft/pdf_template_handler'
3
3
 
4
4
  module Pdfcraft
5
+ mattr_accessor :variable_name
6
+
7
+ def self.variable_name
8
+ @@variable_name ||= 'pdf'
9
+ end
5
10
  end
@@ -6,9 +6,11 @@ module Pdfcraft
6
6
  class PdfHandler
7
7
 
8
8
  def call(template)
9
- "@pdf ||= ::Pdfcraft::Document.new;" +
10
- template.source + ";" +
11
- "@pdf.render;"
9
+ "def #{Pdfcraft.variable_name};" +
10
+ "@#{Pdfcraft.variable_name} ||= ::Pdfcraft::Document.new;" +
11
+ "end;" +
12
+ template.source + ";" +
13
+ "#{Pdfcraft.variable_name}.render;"
12
14
  end
13
15
  end
14
16
 
@@ -1,3 +1,3 @@
1
1
  module Pdfcraft
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -22,4 +22,8 @@ class HomeController < ApplicationController
22
22
  def pdf_layout
23
23
  render pdf: "contents"
24
24
  end
25
+
26
+ def renamed_var
27
+ render pdf: "contents", layout: false
28
+ end
25
29
  end
@@ -1,3 +1,3 @@
1
- @pdf.move_down 20
1
+ pdf.move_down 20
2
2
 
3
- @pdf.text "I was rendered in a partial"
3
+ pdf.text "I was rendered in a partial"
@@ -1 +1 @@
1
- @pdf.text example_helper
1
+ pdf.text example_helper
@@ -1 +1 @@
1
- @pdf.text "This template is rendered as a PDF."
1
+ pdf.text "This template is rendered as a PDF."
@@ -1,4 +1,4 @@
1
- @pdf.text "This was rendered in the base template"
1
+ pdf.text "This was rendered in the base template"
2
2
 
3
3
  render partial: 'the_partial'
4
4
 
@@ -1,3 +1,3 @@
1
- @pdf.page_config page_layout: :landscape
1
+ pdf.page_config page_layout: :landscape
2
2
 
3
- @pdf.text "This page should be formatted as landscape"
3
+ pdf.text "This page should be formatted as landscape"
@@ -0,0 +1,3 @@
1
+ __pdf__.move_down 20
2
+
3
+ __pdf__.text "Rendered by a renamed var"
@@ -0,0 +1,25 @@
1
+ # pdf.repeat :all do
2
+ # Header
3
+ pdf.canvas do
4
+ pdf.bounding_box [pdf.bounds.left, pdf.bounds.top], width: pdf.bounds.width, height: 50 do
5
+ pdf.move_down 10
6
+ pdf.font_size(20) { pdf.text "This is the Header", align: :center }
7
+ pdf.horizontal_rule
8
+ end
9
+ end
10
+
11
+ # Footer
12
+ pdf.canvas do
13
+ pdf.bounding_box [pdf.bounds.left, pdf.bounds.bottom + 50], height: 50, width: pdf.bounds.width do
14
+ pdf.horizontal_rule
15
+ pdf.font_size(8) { pdf.text "This is the Footer", align: :center }
16
+ end
17
+ end
18
+ # end
19
+
20
+ # body
21
+ pdf.canvas do
22
+ pdf.bounding_box [pdf.bounds.left, pdf.bounds.top - 50], width: pdf.bounds.width, height: pdf.bounds.height - 50 do
23
+ yield
24
+ end
25
+ end
@@ -1,6 +1,9 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require 'rails/all'
3
+ require "action_controller/railtie"
4
+ require "action_mailer/railtie"
5
+ require "sprockets/railtie"
6
+ require "rails/test_unit/railtie"
4
7
 
5
8
  Bundler.require(*Rails.groups)
6
9
  require "pdfcraft"
@@ -20,7 +20,7 @@ Dummy::Application.configure do
20
20
  config.active_support.deprecation = :log
21
21
 
22
22
  # Raise an error on page load if there are pending migrations
23
- config.active_record.migration_error = :page_load
23
+ # config.active_record.migration_error = :page_load
24
24
 
25
25
  # Debug mode disables concatenation and preprocessing of assets.
26
26
  # This option may cause significant delays in view rendering with a large
@@ -33,4 +33,5 @@ Dummy::Application.configure do
33
33
 
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
+
36
37
  end
@@ -4,4 +4,5 @@ Dummy::Application.routes.draw do
4
4
  get "/partials", to: "home#partials", as: :partials
5
5
  get "/helpers", to: "home#helpers", as: :helpers
6
6
  get "/pdf_layout", to: "home#pdf_layout", as: :pdf_layout
7
+ get "/renamed_var", to: "home#renamed_var", as: :renamed_var
7
8
  end
@@ -88,3 +88,875 @@ Processing by HomeController#helpers as PDF
88
88
  Rendered text template (0.0ms)
89
89
  Sent data contents.pdf (1.5ms)
90
90
  Completed 200 OK in 38ms (Views: 37.3ms | ActiveRecord: 0.0ms)
91
+
92
+
93
+ Started GET "/" for 127.0.0.1 at 2014-01-02 20:28:43 -0500
94
+ Processing by Rails::WelcomeController#index as HTML
95
+ Rendered /Users/ryan/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.2ms)
96
+ Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
97
+
98
+
99
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:28:48 -0500
100
+ Processing by HomeController#index as PDF
101
+ Rendered home/index.pdf.pdfcraft within layouts/application (29.6ms)
102
+ Rendered text template (0.0ms)
103
+ Sent data contents.pdf (1.0ms)
104
+ Completed 200 OK in 35ms (Views: 34.1ms | ActiveRecord: 0.0ms)
105
+
106
+
107
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:29:44 -0500
108
+ Processing by HomeController#index as PDF
109
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
110
+ Rendered text template (0.0ms)
111
+ Sent data contents.pdf (0.4ms)
112
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
113
+
114
+
115
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:29:50 -0500
116
+ Processing by HomeController#index as PDF
117
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.2ms)
118
+ Rendered text template (0.0ms)
119
+ Sent data contents.pdf (0.6ms)
120
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
121
+
122
+
123
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:30:12 -0500
124
+ Processing by HomeController#index as PDF
125
+ Rendered home/index.pdf.pdfcraft within layouts/application (28.6ms)
126
+ Rendered text template (0.0ms)
127
+ Sent data contents.pdf (1.2ms)
128
+ Completed 200 OK in 37ms (Views: 36.3ms | ActiveRecord: 0.0ms)
129
+
130
+
131
+ Started GET "/" for 127.0.0.1 at 2014-01-02 20:33:00 -0500
132
+ Processing by Rails::WelcomeController#index as HTML
133
+ Rendered /Users/ryan/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (4.0ms)
134
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
135
+
136
+
137
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:33:10 -0500
138
+ Processing by HomeController#index as PDF
139
+ Rendered home/index.pdf.pdfcraft within layouts/application (6.5ms)
140
+ Rendered text template (0.0ms)
141
+ Sent data contents.pdf (0.7ms)
142
+ Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms)
143
+
144
+
145
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:34:30 -0500
146
+ Processing by HomeController#index as PDF
147
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.0ms)
148
+ Rendered text template (0.0ms)
149
+ Sent data contents.pdf (0.4ms)
150
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
151
+
152
+
153
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-02 20:34:35 -0500
154
+ Processing by HomeController#index as PDF
155
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.6ms)
156
+ Rendered text template (0.0ms)
157
+ Sent data contents.pdf (0.3ms)
158
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
159
+
160
+
161
+ Started GET "/" for 127.0.0.1 at 2014-01-04 21:17:06 -0500
162
+ Processing by Rails::WelcomeController#index as HTML
163
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (1.3ms)
164
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
165
+
166
+
167
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:17:15 -0500
168
+ Processing by HomeController#pdf_layout as PDF
169
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (39.8ms)
170
+ Rendered text template (0.0ms)
171
+ Sent data contents.pdf (1.5ms)
172
+ Completed 200 OK in 49ms (Views: 48.0ms | ActiveRecord: 0.0ms)
173
+
174
+
175
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:18:21 -0500
176
+ Processing by HomeController#pdf_layout as PDF
177
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (2.1ms)
178
+ Rendered text template (0.0ms)
179
+ Sent data contents.pdf (0.4ms)
180
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
181
+
182
+
183
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:18:23 -0500
184
+ Processing by HomeController#pdf_layout as PDF
185
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (2.5ms)
186
+ Rendered text template (0.0ms)
187
+ Sent data contents.pdf (0.3ms)
188
+ Completed 200 OK in 7ms (Views: 7.3ms | ActiveRecord: 0.0ms)
189
+
190
+
191
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:18:45 -0500
192
+ Processing by HomeController#pdf_layout as PDF
193
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (1.7ms)
194
+ Rendered text template (0.0ms)
195
+ Sent data contents.pdf (0.3ms)
196
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
197
+
198
+
199
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:18:45 -0500
200
+ Processing by HomeController#pdf_layout as PDF
201
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (2.4ms)
202
+ Rendered text template (0.0ms)
203
+ Sent data contents.pdf (0.4ms)
204
+ Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
205
+
206
+
207
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:18:57 -0500
208
+ Processing by HomeController#pdf_layout as PDF
209
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (36.6ms)
210
+ Rendered text template (0.0ms)
211
+ Sent data contents.pdf (1.1ms)
212
+ Completed 200 OK in 47ms (Views: 46.5ms | ActiveRecord: 0.0ms)
213
+
214
+
215
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:19:00 -0500
216
+ Processing by HomeController#pdf_layout as PDF
217
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (2.4ms)
218
+ Rendered text template (0.0ms)
219
+ Sent data contents.pdf (0.3ms)
220
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
221
+
222
+
223
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:20:37 -0500
224
+ Processing by HomeController#index as PDF
225
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.0ms)
226
+ Rendered text template (0.0ms)
227
+ Sent data contents.pdf (0.4ms)
228
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
229
+
230
+
231
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:21:22 -0500
232
+ Processing by HomeController#index as PDF
233
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.6ms)
234
+ Rendered text template (0.0ms)
235
+ Sent data contents.pdf (0.3ms)
236
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
237
+
238
+
239
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:21:23 -0500
240
+ Processing by HomeController#index as PDF
241
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
242
+ Rendered text template (0.0ms)
243
+ Sent data contents.pdf (0.5ms)
244
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
245
+
246
+
247
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:22:05 -0500
248
+ Processing by HomeController#index as PDF
249
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
250
+ ERROR: compiling _app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154090869000 RAISED /Users/ryan/src/ruby/pdfcraft/test/dummy/app/views/layouts/application.pdf.pdfcraft:36: syntax error, unexpected keyword_ensure, expecting end-of-input
251
+ Function body: def _app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154090869000(local_assigns, output_buffer)
252
+ _old_virtual_path, @virtual_path = @virtual_path, "layouts/application";_old_output_buffer = @output_buffer;;@pdf ||= ::Pdfcraft::Document.new;# @pdf.repeat :all do
253
+ # Header
254
+ @pdf.canvas do
255
+ @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.top], width: @pdf.bounds.width do
256
+ @pdf.cell content: "This is the Header",
257
+ width: @pdf.bounds.width,
258
+ height: 50,
259
+ align: :center,
260
+ borders: [:bottom],
261
+ border_width: 2,
262
+ padding: 12
263
+ end
264
+ end
265
+
266
+ # Footer
267
+ @pdf.canvas do
268
+ @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.bottom + 50], width: @pdf.bounds.width do
269
+ @pdf.cell content: "This is the Footer",
270
+ width: @pdf.bounds.width,
271
+ height: 50,
272
+ align: :center,
273
+ borders: [:top],
274
+ border_width: 2,
275
+ padding: 12
276
+ end
277
+ end
278
+ # end
279
+
280
+ # body
281
+ @pdf.canvas
282
+ @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.top - 25], width: @pdf.bounds.width, height: @pdf.bounds.height - 50 do
283
+ yield
284
+ end
285
+ end
286
+ ;@pdf.render;
287
+ ensure
288
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
289
+ end
290
+
291
+ Backtrace: /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:299:in `module_eval'
292
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:299:in `compile'
293
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:248:in `block in compile!'
294
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:236:in `synchronize'
295
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:236:in `compile!'
296
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:142:in `block in render'
297
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:161:in `instrument'
298
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:141:in `render'
299
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
300
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:47:in `render_template'
301
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:17:in `render'
302
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/renderer.rb:42:in `render_template'
303
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/renderer.rb:23:in `render'
304
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:127:in `_render_template'
305
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/streaming.rb:219:in `_render_template'
306
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:120:in `render_to_body'
307
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:33:in `render_to_body'
308
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
309
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:113:in `render_to_string'
310
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:23:in `render_to_string'
311
+ /Users/ryan/src/ruby/pdfcraft/lib/pdfcraft/pdf_renderer.rb:4:in `block in <top (required)>'
312
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:33:in `block in _handle_render_options'
313
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/set.rb:263:in `each_key'
314
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/set.rb:263:in `each'
315
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:30:in `_handle_render_options'
316
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
317
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:97:in `render'
318
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:16:in `render'
319
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
320
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
321
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
322
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/core_ext/benchmark.rb:12:in `ms'
323
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:41:in `block in render'
324
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
325
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
326
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:40:in `render'
327
+ /Users/ryan/src/ruby/pdfcraft/test/dummy/app/controllers/home_controller.rb:6:in `block (2 levels) in index'
328
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/mime_responds.rb:191:in `call'
329
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/mime_responds.rb:191:in `respond_to'
330
+ /Users/ryan/src/ruby/pdfcraft/test/dummy/app/controllers/home_controller.rb:4:in `index'
331
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
332
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:189:in `process_action'
333
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
334
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
335
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:383:in `_run__30155370548712426__process_action__callbacks'
336
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
337
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
338
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
339
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
340
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `block in instrument'
341
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
342
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `instrument'
343
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
344
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
345
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
346
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
347
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:44:in `process'
348
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
349
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
350
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
351
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:80:in `call'
352
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
353
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:48:in `call'
354
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:71:in `block in call'
355
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:59:in `each'
356
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:59:in `call'
357
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:680:in `call'
358
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
359
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
360
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
361
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
362
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/flash.rb:241:in `call'
363
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
364
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
365
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/cookies.rb:486:in `call'
366
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/query_cache.rb:36:in `call'
367
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
368
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/migration.rb:369:in `call'
369
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
370
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:373:in `_run__1047787737412960345__call__callbacks'
371
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
372
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
373
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/reloader.rb:64:in `call'
374
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
375
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
376
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
377
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
378
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
379
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
380
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
381
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
382
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
383
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
384
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
385
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
386
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
387
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
388
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
389
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
390
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
391
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
392
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
393
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
394
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
395
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
396
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
397
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
398
+ Completed 500 Internal Server Error in 14ms
399
+
400
+ ActionView::Template::Error (/Users/ryan/src/ruby/pdfcraft/test/dummy/app/views/layouts/application.pdf.pdfcraft:36: syntax error, unexpected keyword_ensure, expecting end-of-input):
401
+ 33: end
402
+ 34: end
403
+ app/controllers/home_controller.rb:6:in `block (2 levels) in index'
404
+ app/controllers/home_controller.rb:4:in `index'
405
+
406
+
407
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
408
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (18.5ms)
409
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (30.4ms)
410
+
411
+
412
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:22:15 -0500
413
+ Processing by HomeController#index as PDF
414
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
415
+ Rendered text template (0.0ms)
416
+ Sent data contents.pdf (0.3ms)
417
+ Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
418
+
419
+
420
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:22:58 -0500
421
+ Processing by HomeController#index as PDF
422
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
423
+ Rendered text template (0.0ms)
424
+ Sent data contents.pdf (0.3ms)
425
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
426
+
427
+
428
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:24:24 -0500
429
+ Processing by HomeController#index as PDF
430
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
431
+ Rendered text template (0.0ms)
432
+ Sent data contents.pdf (0.3ms)
433
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
434
+
435
+
436
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:30:05 -0500
437
+ Processing by HomeController#index as PDF
438
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.0ms)
439
+ ERROR: compiling _app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154106726720 RAISED /Users/ryan/src/ruby/pdfcraft/test/dummy/app/views/layouts/application.pdf.pdfcraft:5: syntax error, unexpected '{', expecting keyword_end
440
+ @pdf.font_size 36 { @pdf.text "This is the Heade...
441
+ ^
442
+ /Users/ryan/src/ruby/pdfcraft/test/dummy/app/views/layouts/application.pdf.pdfcraft:5: syntax error, unexpected '}', expecting keyword_end
443
+ Function body: def _app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154106726720(local_assigns, output_buffer)
444
+ _old_virtual_path, @virtual_path = @virtual_path, "layouts/application";_old_output_buffer = @output_buffer;;@pdf ||= ::Pdfcraft::Document.new;# @pdf.repeat :all do
445
+ # Header
446
+ @pdf.canvas do
447
+ @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.top], width: @pdf.bounds.width, height: 50 do
448
+ @pdf.font_size 36 { @pdf.text "This is the Header", align: :center }
449
+ @pdf.hoizontal_rule
450
+ end
451
+ end
452
+
453
+ # Footer
454
+ @pdf.canvas do
455
+ @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.bottom + 50], width: @pdf.bounds.width do
456
+ @pdf.cell content: "This is the Footer",
457
+ width: @pdf.bounds.width,
458
+ height: 50,
459
+ align: :center,
460
+ borders: [:top],
461
+ border_width: 2,
462
+ padding: 12
463
+ end
464
+ end
465
+ # end
466
+
467
+ # body
468
+ @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.top - 25], width: @pdf.bounds.width, height: @pdf.bounds.height - 50 do
469
+ yield
470
+ end
471
+ ;@pdf.render;
472
+ ensure
473
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
474
+ end
475
+
476
+ Backtrace: /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:299:in `module_eval'
477
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:299:in `compile'
478
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:248:in `block in compile!'
479
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:236:in `synchronize'
480
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:236:in `compile!'
481
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:142:in `block in render'
482
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:161:in `instrument'
483
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/template.rb:141:in `render'
484
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
485
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:47:in `render_template'
486
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:17:in `render'
487
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/renderer.rb:42:in `render_template'
488
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_view/renderer/renderer.rb:23:in `render'
489
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:127:in `_render_template'
490
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/streaming.rb:219:in `_render_template'
491
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:120:in `render_to_body'
492
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:33:in `render_to_body'
493
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
494
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:113:in `render_to_string'
495
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:23:in `render_to_string'
496
+ /Users/ryan/src/ruby/pdfcraft/lib/pdfcraft/pdf_renderer.rb:4:in `block in <top (required)>'
497
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:33:in `block in _handle_render_options'
498
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/set.rb:263:in `each_key'
499
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/set.rb:263:in `each'
500
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:30:in `_handle_render_options'
501
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
502
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:97:in `render'
503
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:16:in `render'
504
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
505
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
506
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
507
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/core_ext/benchmark.rb:12:in `ms'
508
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:41:in `block in render'
509
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
510
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
511
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:40:in `render'
512
+ /Users/ryan/src/ruby/pdfcraft/test/dummy/app/controllers/home_controller.rb:6:in `block (2 levels) in index'
513
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/mime_responds.rb:191:in `call'
514
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/mime_responds.rb:191:in `respond_to'
515
+ /Users/ryan/src/ruby/pdfcraft/test/dummy/app/controllers/home_controller.rb:4:in `index'
516
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
517
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:189:in `process_action'
518
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
519
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
520
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:383:in `_run__30155370548712426__process_action__callbacks'
521
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
522
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
523
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
524
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
525
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `block in instrument'
526
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
527
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `instrument'
528
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
529
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
530
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
531
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
532
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:44:in `process'
533
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
534
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
535
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
536
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:80:in `call'
537
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
538
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:48:in `call'
539
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:71:in `block in call'
540
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:59:in `each'
541
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:59:in `call'
542
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:680:in `call'
543
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
544
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
545
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
546
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
547
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/flash.rb:241:in `call'
548
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
549
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
550
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/cookies.rb:486:in `call'
551
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/query_cache.rb:36:in `call'
552
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
553
+ /Users/ryan/.gem/ruby/2.1.0/gems/activerecord-4.0.2/lib/active_record/migration.rb:369:in `call'
554
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
555
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:373:in `_run__1047787737412960345__call__callbacks'
556
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
557
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
558
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/reloader.rb:64:in `call'
559
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
560
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
561
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
562
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
563
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
564
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
565
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
566
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
567
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
568
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
569
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
570
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
571
+ /Users/ryan/.gem/ruby/2.1.0/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
572
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
573
+ /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
574
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
575
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
576
+ /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
577
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
578
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
579
+ /Users/ryan/.gem/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
580
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
581
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
582
+ /Users/ryan/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
583
+ Completed 500 Internal Server Error in 18ms
584
+
585
+ ActionView::Template::Error (/Users/ryan/src/ruby/pdfcraft/test/dummy/app/views/layouts/application.pdf.pdfcraft:5: syntax error, unexpected '{', expecting keyword_end
586
+ @pdf.font_size 36 { @pdf.text "This is the Heade...
587
+ ^
588
+ /Users/ryan/src/ruby/pdfcraft/test/dummy/app/views/layouts/application.pdf.pdfcraft:5: syntax error, unexpected '}', expecting keyword_end):
589
+ 2: # Header
590
+ 3: @pdf.canvas do
591
+ 4: @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.top], width: @pdf.bounds.width, height: 50 do
592
+ 5: @pdf.font_size 36 { @pdf.text "This is the Header", align: :center }
593
+ 6: @pdf.hoizontal_rule
594
+ 7: end
595
+ 8: end
596
+ app/controllers/home_controller.rb:6:in `block (2 levels) in index'
597
+ app/controllers/home_controller.rb:4:in `index'
598
+
599
+
600
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
601
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
602
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.2ms)
603
+
604
+
605
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:30:24 -0500
606
+ Processing by HomeController#index as PDF
607
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.6ms)
608
+ Completed 500 Internal Server Error in 7ms
609
+
610
+ ActionView::Template::Error (undefined method `hoizontal_rule' for #<Pdfcraft::Document:0x007f9c0f33a498>):
611
+ 3: @pdf.canvas do
612
+ 4: @pdf.bounding_box [@pdf.bounds.left, @pdf.bounds.top], width: @pdf.bounds.width, height: 50 do
613
+ 5: @pdf.font_size(36) { @pdf.text "This is the Header", align: :center }
614
+ 6: @pdf.hoizontal_rule
615
+ 7: end
616
+ 8: end
617
+ 9:
618
+ app/views/layouts/application.pdf.pdfcraft:6:in `block (2 levels) in _app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154123335040'
619
+ app/views/layouts/application.pdf.pdfcraft:4:in `block in _app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154123335040'
620
+ app/views/layouts/application.pdf.pdfcraft:3:in `_app_views_layouts_application_pdf_pdfcraft___1941488342444786228_70154123335040'
621
+ app/controllers/home_controller.rb:6:in `block (2 levels) in index'
622
+ app/controllers/home_controller.rb:4:in `index'
623
+
624
+
625
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (7.8ms)
626
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.8ms)
627
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (17.9ms)
628
+
629
+
630
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:30:38 -0500
631
+ Processing by HomeController#index as PDF
632
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
633
+ Rendered text template (0.0ms)
634
+ Sent data contents.pdf (0.4ms)
635
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
636
+
637
+
638
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:30:55 -0500
639
+ Processing by HomeController#index as PDF
640
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.5ms)
641
+ Rendered text template (0.0ms)
642
+ Sent data contents.pdf (0.4ms)
643
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
644
+
645
+
646
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:31:19 -0500
647
+ Processing by HomeController#index as PDF
648
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
649
+ Rendered text template (0.0ms)
650
+ Sent data contents.pdf (0.3ms)
651
+ Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)
652
+
653
+
654
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:31:42 -0500
655
+ Processing by HomeController#index as PDF
656
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.7ms)
657
+ Rendered text template (0.0ms)
658
+ Sent data contents.pdf (0.4ms)
659
+ Completed 200 OK in 8ms (Views: 8.2ms | ActiveRecord: 0.0ms)
660
+
661
+
662
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:31:43 -0500
663
+ Processing by HomeController#index as PDF
664
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.7ms)
665
+ Rendered text template (0.0ms)
666
+ Sent data contents.pdf (0.3ms)
667
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
668
+
669
+
670
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:32:15 -0500
671
+ Processing by HomeController#index as PDF
672
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
673
+ Rendered text template (0.0ms)
674
+ Sent data contents.pdf (0.3ms)
675
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
676
+
677
+
678
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:32:16 -0500
679
+ Processing by HomeController#index as PDF
680
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.9ms)
681
+ Rendered text template (0.0ms)
682
+ Sent data contents.pdf (0.3ms)
683
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
684
+
685
+
686
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:32:24 -0500
687
+ Processing by HomeController#index as PDF
688
+ Rendered home/index.pdf.pdfcraft within layouts/application (3.4ms)
689
+ Rendered text template (0.0ms)
690
+ Sent data contents.pdf (0.7ms)
691
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
692
+
693
+
694
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:33:38 -0500
695
+ Processing by HomeController#index as PDF
696
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
697
+ Rendered text template (0.0ms)
698
+ Sent data contents.pdf (0.4ms)
699
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
700
+
701
+
702
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:34:50 -0500
703
+ Processing by HomeController#index as PDF
704
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
705
+ Rendered text template (0.0ms)
706
+ Sent data contents.pdf (0.3ms)
707
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
708
+
709
+
710
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:34:51 -0500
711
+ Processing by HomeController#index as PDF
712
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.4ms)
713
+ Rendered text template (0.0ms)
714
+ Sent data contents.pdf (0.4ms)
715
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
716
+
717
+
718
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:36:32 -0500
719
+ Processing by HomeController#index as PDF
720
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.5ms)
721
+ Rendered text template (0.0ms)
722
+ Sent data contents.pdf (0.3ms)
723
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
724
+
725
+
726
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:37:35 -0500
727
+ Processing by HomeController#index as PDF
728
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.5ms)
729
+ Rendered text template (0.0ms)
730
+ Sent data contents.pdf (0.4ms)
731
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
732
+
733
+
734
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:37:53 -0500
735
+ Processing by HomeController#index as PDF
736
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
737
+ Rendered text template (0.0ms)
738
+ Sent data contents.pdf (0.3ms)
739
+ Completed 200 OK in 6ms (Views: 6.3ms | ActiveRecord: 0.0ms)
740
+
741
+
742
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:38:16 -0500
743
+ Processing by HomeController#index as PDF
744
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.6ms)
745
+ Rendered text template (0.0ms)
746
+ Sent data contents.pdf (0.3ms)
747
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
748
+
749
+
750
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:38:26 -0500
751
+ Processing by HomeController#index as PDF
752
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
753
+ Rendered text template (0.0ms)
754
+ Sent data contents.pdf (0.3ms)
755
+ Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
756
+
757
+
758
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:38:57 -0500
759
+ Processing by HomeController#index as PDF
760
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.6ms)
761
+ Rendered text template (0.0ms)
762
+ Sent data contents.pdf (0.4ms)
763
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
764
+
765
+
766
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:38:58 -0500
767
+ Processing by HomeController#index as PDF
768
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
769
+ Rendered text template (0.0ms)
770
+ Sent data contents.pdf (0.4ms)
771
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
772
+
773
+
774
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:38:59 -0500
775
+ Processing by HomeController#index as PDF
776
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.0ms)
777
+ Rendered text template (0.0ms)
778
+ Sent data contents.pdf (0.3ms)
779
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
780
+
781
+
782
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:38:59 -0500
783
+ Processing by HomeController#index as PDF
784
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.6ms)
785
+ Rendered text template (0.0ms)
786
+ Sent data contents.pdf (0.4ms)
787
+ Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
788
+
789
+
790
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:00 -0500
791
+ Processing by HomeController#index as PDF
792
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.0ms)
793
+ Rendered text template (0.0ms)
794
+ Sent data contents.pdf (0.4ms)
795
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
796
+
797
+
798
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:00 -0500
799
+ Processing by HomeController#index as PDF
800
+ Rendered home/index.pdf.pdfcraft within layouts/application (4.5ms)
801
+ Rendered text template (0.0ms)
802
+ Sent data contents.pdf (0.4ms)
803
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
804
+
805
+
806
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:00 -0500
807
+ Processing by HomeController#index as PDF
808
+ Rendered home/index.pdf.pdfcraft within layouts/application (4.1ms)
809
+ Rendered text template (0.0ms)
810
+ Sent data contents.pdf (0.4ms)
811
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
812
+
813
+
814
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:01 -0500
815
+ Processing by HomeController#index as PDF
816
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.9ms)
817
+ Rendered text template (0.0ms)
818
+ Sent data contents.pdf (0.4ms)
819
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
820
+
821
+
822
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:01 -0500
823
+ Processing by HomeController#index as PDF
824
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.0ms)
825
+ Rendered text template (0.0ms)
826
+ Sent data contents.pdf (0.3ms)
827
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
828
+
829
+
830
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:01 -0500
831
+ Processing by HomeController#index as PDF
832
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.9ms)
833
+ Rendered text template (0.0ms)
834
+ Sent data contents.pdf (0.5ms)
835
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)
836
+
837
+
838
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:39:44 -0500
839
+ Processing by HomeController#index as PDF
840
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
841
+ Rendered text template (0.0ms)
842
+ Sent data contents.pdf (0.3ms)
843
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
844
+
845
+
846
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:34 -0500
847
+ Processing by HomeController#index as PDF
848
+ Rendered home/index.pdf.pdfcraft within layouts/application (33.4ms)
849
+ Rendered text template (0.0ms)
850
+ Sent data contents.pdf (1.8ms)
851
+ Completed 200 OK in 46ms (Views: 45.3ms | ActiveRecord: 0.0ms)
852
+
853
+
854
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:35 -0500
855
+ Processing by HomeController#index as PDF
856
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.9ms)
857
+ Rendered text template (0.0ms)
858
+ Sent data contents.pdf (0.3ms)
859
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
860
+
861
+
862
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:36 -0500
863
+ Processing by HomeController#index as PDF
864
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.9ms)
865
+ Rendered text template (0.0ms)
866
+ Sent data contents.pdf (0.3ms)
867
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
868
+
869
+
870
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:36 -0500
871
+ Processing by HomeController#index as PDF
872
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.3ms)
873
+ Rendered text template (0.0ms)
874
+ Sent data contents.pdf (0.4ms)
875
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
876
+
877
+
878
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:36 -0500
879
+ Processing by HomeController#index as PDF
880
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.5ms)
881
+ Rendered text template (0.0ms)
882
+ Sent data contents.pdf (0.4ms)
883
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
884
+
885
+
886
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:36 -0500
887
+ Processing by HomeController#index as PDF
888
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
889
+ Rendered text template (0.0ms)
890
+ Sent data contents.pdf (0.4ms)
891
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
892
+
893
+
894
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:37 -0500
895
+ Processing by HomeController#index as PDF
896
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
897
+ Rendered text template (0.0ms)
898
+ Sent data contents.pdf (0.4ms)
899
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
900
+
901
+
902
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:37 -0500
903
+ Processing by HomeController#index as PDF
904
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.8ms)
905
+ Rendered text template (0.0ms)
906
+ Sent data contents.pdf (0.6ms)
907
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
908
+
909
+
910
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:37 -0500
911
+ Processing by HomeController#index as PDF
912
+ Rendered home/index.pdf.pdfcraft within layouts/application (1.7ms)
913
+ Rendered text template (0.0ms)
914
+ Sent data contents.pdf (0.4ms)
915
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
916
+
917
+
918
+ Started GET "/" for 127.0.0.1 at 2014-01-04 21:47:44 -0500
919
+ Processing by Rails::WelcomeController#index as HTML
920
+ Rendered /Users/ryan/.gem/ruby/2.1.0/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (2.3ms)
921
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
922
+
923
+
924
+ Started GET "/home.pdf" for 127.0.0.1 at 2014-01-04 21:47:50 -0500
925
+ Processing by HomeController#index as PDF
926
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.5ms)
927
+ Rendered text template (0.0ms)
928
+ Sent data contents.pdf (0.4ms)
929
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
930
+
931
+
932
+ Started GET "/pdf_layout.pdf" for 127.0.0.1 at 2014-01-04 21:47:58 -0500
933
+ Processing by HomeController#pdf_layout as PDF
934
+ Rendered home/pdf_layout.pdf.pdfcraft within layouts/application (2.2ms)
935
+ Rendered text template (0.0ms)
936
+ Sent data contents.pdf (0.6ms)
937
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
938
+
939
+
940
+ Started GET "/helpers.pdf" for 127.0.0.1 at 2014-01-04 21:48:27 -0500
941
+ Processing by HomeController#helpers as PDF
942
+ Rendered home/helpers.pdf.pdfcraft within layouts/application (1.9ms)
943
+ Rendered text template (0.0ms)
944
+ Sent data contents.pdf (0.4ms)
945
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
946
+
947
+
948
+ Started GET "/partials.pdf" for 127.0.0.1 at 2014-01-04 21:48:33 -0500
949
+ Processing by HomeController#partials as PDF
950
+ Rendered home/_the_partial.pdf.pdfcraft (2.1ms)
951
+ Rendered home/partials.pdf.pdfcraft within layouts/application (8.5ms)
952
+ Rendered text template (0.0ms)
953
+ Sent data contents.pdf (0.4ms)
954
+ Completed 200 OK in 13ms (Views: 13.2ms | ActiveRecord: 0.0ms)
955
+
956
+
957
+ Started GET "/another.pdf" for 127.0.0.1 at 2014-01-04 21:48:46 -0500
958
+ Processing by HomeController#another as PDF
959
+ Rendered home/index.pdf.pdfcraft within layouts/application (2.3ms)
960
+ Rendered text template (0.0ms)
961
+ Sent data contents.pdf (0.3ms)
962
+ Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms)