Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.4ms) Completed 200 OK in 85ms (Views: 84.7ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.8ms) Completed 200 OK in 86ms (Views: 85.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.3ms) Completed 200 OK in 85ms (Views: 84.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.2ms) Completed 200 OK in 84ms (Views: 84.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.1ms) Completed 200 OK in 85ms (Views: 84.3ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.0ms) Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (68.4ms) Completed 200 OK in 84ms (Views: 83.9ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.9ms) Completed 200 OK in 85ms (Views: 84.6ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (72.6ms) Completed 200 OK in 88ms (Views: 87.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.0ms) Completed 200 OK in 84ms (Views: 83.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (68.7ms) Completed 200 OK in 84ms (Views: 83.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.1ms) Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.3ms) Completed 200 OK in 84ms (Views: 83.9ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (72.0ms) Completed 200 OK in 88ms (Views: 87.7ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.1ms) Completed 200 OK in 85ms (Views: 84.7ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.8ms) Completed 200 OK in 87ms (Views: 86.6ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.9ms) Completed 200 OK in 84ms (Views: 83.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (98.8ms) Completed 200 OK in 117ms (Views: 116.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (68.9ms) Completed 200 OK in 84ms (Views: 83.9ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.1ms) Completed 200 OK in 84ms (Views: 83.9ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.6ms) Completed 200 OK in 84ms (Views: 84.0ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.0ms) Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.8ms) Completed 200 OK in 85ms (Views: 84.8ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.7ms) Completed 200 OK in 85ms (Views: 84.7ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (82.4ms) Completed 200 OK in 97ms (Views: 96.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.9ms) Completed 200 OK in 86ms (Views: 85.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.8ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.9ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (71.3ms) Completed 200 OK in 86ms (Views: 85.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.9ms) Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.4ms) Completed 200 OK in 85ms (Views: 84.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.2ms) Completed 200 OK in 84ms (Views: 84.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.2ms) Completed 200 OK in 84ms (Views: 84.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.0ms) Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.9ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.8ms) Completed 200 OK in 85ms (Views: 84.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (43.0ms) Completed 500 Internal Server Error in 76ms Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175318760 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected tCONSTANT, expecting kEND "text "Hello There :D" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:3: syntax error, unexpected tIDENTIFIER, expecting kEND text "now it is here: #{cursor}" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:3: syntax error, unexpected ':', expecting kEND text "now it is here: #{cursor}" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:36: syntax error, unexpected '}', expecting kEND "};"+ ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: syntax error, unexpected tIDENTIFIER, expecting kEND "pdf.render" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: unterminated string meets end of file /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: syntax error, unexpected $end, expecting kEND Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175318760(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;"pdf=Prawn::Document.new {" + "text "Hello There :D" text "now it is here: #{cursor}" text "ITEMS ARE #{@items.inspect}" font("Courier") do text "Written in Courier because we are inside the block." end text "Let's see which is the current font_size: #{font_size.inspect}" move_down 10 font_size 16 text "Yeah, something bigger!" move_down 10 font_size(25) { text "Even bigger!" } move_down 10 text "Back to 16 again." move_down 10 text "Single line on 20 using the :size option.", :size => 20 move_down 10 text "Back to 16 once more." move_down 10 font("Courier", :size => 10) do text "Yeah, using Courier 10 courtesy of the font method." end font("Helvetica", :size => 12) # back to normal text "Default color is black" move_down 25 text "Changed to red", :color => "FF0000" move_down 25 text "CMYK color", :color => [22, 55, 79, 30] move_down 25 text "Also works with inline formatting", :color => "0000FF", :inline_format => true " + "};"+ "pdf.render" ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.6ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (40.8ms) Completed 500 Internal Server Error in 75ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.9ms) Completed 500 Internal Server Error in 17ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.6ms) Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.5ms) Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (76.1ms) Completed 200 OK in 90ms (Views: 90.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.5ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.5ms) Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.9ms) Completed 500 Internal Server Error in 17ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.2ms) Completed 200 OK in 85ms (Views: 84.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317500 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string ...t_buffer = @output_buffer;;%PDF-1.3 ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND ...t_buffer = @output_buffer;;%PDF-1.3 ^ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317500(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;%PDF-1.3 %ÿÿÿÿ 1 0 obj << /Producer /Creator >> endobj 2 0 obj << /Type /Catalog /Pages 3 0 R >> endobj 3 0 obj << /Count 1 /Type /Pages /Kids [5 0 R] >> endobj 4 0 obj << /Length 4 >> stream q Q endstream endobj 5 0 obj << /MediaBox [0 0 612.0 792.0] /Parent 3 0 R /Type /Page /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /Contents 4 0 R >> endobj xref 0 6 0000000000 65535 f 0000000015 00000 n 0000000109 00000 n 0000000158 00000 n 0000000215 00000 n 0000000268 00000 n trailer << /Size 6 /Info 1 0 R /Root 2 0 R >> startxref 422 %%EOF ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (2.1ms) Completed 500 Internal Server Error in 16ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.9ms) Completed 500 Internal Server Error in 17ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (71.3ms) Completed 200 OK in 86ms (Views: 85.7ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.3ms) Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.3ms) Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.3ms) Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.3ms) Completed 200 OK in 14ms (Views: 14.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.3ms) Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.4ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (13.2ms) Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (75.8ms) Completed 200 OK in 91ms (Views: 90.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (72.2ms) Completed 200 OK in 86ms (Views: 86.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (45.6ms) Completed 500 Internal Server Error in 80ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (44.8ms) Completed 500 Internal Server Error in 80ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (46.9ms) Completed 500 Internal Server Error in 90ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.4ms) Completed 200 OK in 15ms (Views: 15.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (48.3ms) Completed 200 OK in 63ms (Views: 62.2ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317420 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting '}' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4: syntax error, unexpected kEND, expecting '}' Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317420(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;pdf=Prawn::Document.new{text %Q{nil};pdf.render ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.5ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.6ms) Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (67.6ms) Completed 200 OK in 82ms (Views: 81.7ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.6ms) Completed 200 OK in 17ms (Views: 16.9ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (12.1ms) Completed 200 OK in 30ms (Views: 29.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.9ms) Completed 500 Internal Server Error in 17ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (68.5ms) Completed 200 OK in 83ms (Views: 82.4ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected '}', expecting kEND ...ment.new{%Q{template.source}}};pdf.render ^ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;pdf=Prawn::Document.new{%Q{template.source}}};pdf.render ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.5ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected '}', expecting kEND ...put_buffer = @output_buffer;;};pdf.render ^ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;};pdf.render ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.5ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;end;pdf.render; ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.5ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;;end;pdf.render; ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.5ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (67.4ms) Completed 200 OK in 83ms (Views: 83.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (67.1ms) Completed 500 Internal Server Error in 82ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (42.6ms) Completed 500 Internal Server Error in 77ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (94.5ms) Completed 500 Internal Server Error in 190ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (68.2ms) Completed 200 OK in 83ms (Views: 82.6ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '(' ...:Prawn::Document.new();{text "Hello There :D" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:34: syntax error, unexpected '}', expecting kEND };self.output_buffer = pdf.render; ^ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175317400(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;pdf = ::Prawn::Document.new();{text "Hello There :D" text "now it is here: #{cursor}" text "ITems are #{@items.inspect}" font("Courier") do text "Written in Courier because we are inside the block." end text "Let's see which is the current font_size: #{font_size.inspect}" move_down 10 font_size 16 text "Yeah, something bigger!" move_down 10 font_size(25) { text "Even bigger!" } move_down 10 text "Back to 16 again." move_down 10 text "Single line on 20 using the :size option.", :size => 20 move_down 10 text "Back to 16 once more." move_down 10 font("Courier", :size => 10) do text "Yeah, using Courier 10 courtesy of the font method." end font("Helvetica", :size => 12) # back to normal text "Default color is black" move_down 25 text "Changed to red", :color => "FF0000" move_down 25 text "CMYK color", :color => [22, 55, 79, 30] move_down 25 text "Also works with inline formatting", :color => "0000FF", :inline_format => true };self.output_buffer = pdf.render; ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.6ms) Completed 500 Internal Server Error in 16ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (74.5ms) Completed 200 OK in 89ms (Views: 88.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (96.0ms) Completed 500 Internal Server Error in 193ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (69.9ms) Completed 200 OK in 84ms (Views: 84.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175318400 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: dynamic constant assignment ...sions << PrawnRailsHelperpdf = ::Prawn::Document.new();pdf.t... ^ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2175318400(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;Prawn::Document.extensions << PrawnRailsHelperpdf = ::Prawn::Document.new();pdf.text "Hello There :D" pdf.text "now it is here: #{pdf.cursor}" pdf.text "ITems are #{@items.inspect}" pdf.font("Courier") do pdf.text "Written in Courier because we are inside the block." end pdf.text "Let's see which is the current font_size: #{pdf.font_size.inspect}" pdf.move_down 10 pdf.font_size 16 pdf.text "Yeah, something bigger!" pdf.move_down 10 pdf.font_size(25) { pdf.text "Even bigger!" } pdf.move_down 10 pdf.text "Back to 16 again." pdf.move_down 10 pdf.text "Single line on 20 using the :size option.", :size => 20 pdf.move_down 10 pdf.text "Back to 16 once more." pdf.move_down 10 pdf.font("Courier", :size => 10) do pdf.text "Yeah, using Courier 10 courtesy of the font method." end pdf.font("Helvetica", :size => 12) # back to normal pdf.text "Default color is black" pdf.move_down 25 pdf.text "Changed to red", :color => "FF0000" pdf.move_down 25 pdf.text "CMYK color", :color => [22, 55, 79, 30] pdf.move_down 25 pdf.text "Also works with inline formatting", :color => "0000FF", :inline_format => true ;self.output_buffer=pdf.render; ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:36:in `compile' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__602385578__process_action__2050297269__callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/cortiz/proyectos/prawn-rails/test/dummy/test/functional/pdf_controller_test.rb:5:in `test_should_get_a_pdf' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:67:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:21 Rendered pdf/render_pdf.pdf.prawn (0.9ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (85.7ms) Completed 200 OK in 100ms (Views: 99.9ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (97.1ms) Completed 500 Internal Server Error in 193ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (56.6ms) Completed 500 Internal Server Error in 71ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (42.7ms) Completed 500 Internal Server Error in 76ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (41.7ms) Completed 500 Internal Server Error in 75ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.5ms) Completed 500 Internal Server Error in 16ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (57.9ms) Completed 500 Internal Server Error in 73ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (156.6ms) Completed 500 Internal Server Error in 190ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.2ms) Completed 500 Internal Server Error in 15ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (55.9ms) Completed 500 Internal Server Error in 70ms Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (73.7ms) Completed 200 OK in 89ms (Views: 88.5ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (75.0ms) Completed 200 OK in 89ms (Views: 89.1ms | ActiveRecord: 0.0ms) Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (73.0ms) Completed 200 OK in 102ms (Views: 101.2ms | ActiveRecord: 0.0ms)