Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:17:04 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (10.7ms) Completed 500 Internal Server Error in 29ms ActionView::Template::Error (undefined method `call' for PrawnRails::PrawnHandler:Class): Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (18.2ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:17:27 -0600 2012 Processing by PdfController#render_pdf as PDF ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172514920 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_2172514920(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;pdf = Prawn::Document.new dotext "Hello There :D";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:55: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/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (4.3ms) Completed 500 Internal Server Error in 18ms ActionView::Template::Error (compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:2:in `compile' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.1ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:18:34 -0600 2012 Processing by PdfController#render_pdf as PDF ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172514940 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_2172514940(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;pdf = Prawn::Document.new dotext "Hello There :D";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:55: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/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (3.7ms) Completed 500 Internal Server Error in 17ms ActionView::Template::Error (compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:2:in `compile' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.5ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:19:19 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (86.8ms) Completed 500 Internal Server Error in 119ms ActionView::Template::Error (undefined local variable or method `template' for #<#:0x103012af8>): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172533920' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (27.6ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:19:49 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (85.8ms) Completed 500 Internal Server Error in 118ms ActionView::Template::Error (undefined local variable or method `app' for #<#:0x103013d68>): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172563200' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (26.8ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:10 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.8ms) Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:37 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.2ms) Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:46 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.0ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:54 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.0ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:21:10 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.1ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:21:55 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.8ms) Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:22:34 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.1ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:22:50 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.1ms) Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:23:34 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (0.2ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:26:40 -0600 2012 Processing by PdfController#render_pdf as PDF ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172580280 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_2172580280(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;%PDF-1.3 %ÿÿÿÿ 1 0 obj << /Creator /Producer >> endobj 2 0 obj << /Pages 3 0 R /Type /Catalog >> endobj 3 0 obj << /Kids [5 0 R] /Type /Pages /Count 1 >> endobj 4 0 obj << /Length 4 >> stream q Q endstream endobj 5 0 obj << /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /Contents 4 0 R /Type /Page /MediaBox [0 0 612.0 792.0] /Parent 3 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 << /Root 2 0 R /Size 6 /Info 1 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:55: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/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (5.1ms) Completed 500 Internal Server Error in 19ms ActionView::Template::Error (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 ^): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:1:in `compile' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.3ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:30:37 -0600 2012 Processing by PdfController#render_pdf as PDF ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172538260 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_2172538260(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;%PDF-1.3 %ÿÿÿÿ 1 0 obj << /Creator /Producer >> endobj 2 0 obj << /Pages 3 0 R /Type /Catalog >> endobj 3 0 obj << /Kids [5 0 R] /Type /Pages /Count 1 >> endobj 4 0 obj << /Length 4 >> stream q Q endstream endobj 5 0 obj << /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] >> /Contents 4 0 R /Type /Page /MediaBox [0 0 612.0 792.0] /Parent 3 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 << /Root 2 0 R /Size 6 /Info 1 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:55: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/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (5.2ms) Completed 500 Internal Server Error in 19ms ActionView::Template::Error (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 ^): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:1:in `compile' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.4ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:31:39 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (4.4ms) Completed 500 Internal Server Error in 20ms ActionView::Template::Error (undefined local variable or method `stf' for PrawnRails::PrawnHandler:Class): Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.3ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:32:38 -0600 2012 Processing by PdfController#render_pdf as PDF ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172538220 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_2172538220(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;pdf=Prawn::Document.new dotext "Hello There :D"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:55: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/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (3.7ms) Completed 500 Internal Server Error in 17ms ActionView::Template::Error (compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end): 1: text "Hello There :D" app/views/pdf/render_pdf.pdf.prawn:2:in `compile' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.5ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:33:39 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (113.6ms) Completed 200 OK in 127ms (Views: 127.0ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (2.5ms) Compiled application.css (2ms) (pid 43978) Compiled pdf.css (0ms) (pid 43978) Compiled application.js (13ms) (pid 43978) Compiled jquery.js (32ms) (pid 43978) Compiled jquery_ujs.js (3ms) (pid 43978) Compiled pdf.js (0ms) (pid 43978) Completed 200 OK in 395ms (Views: 394.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Served asset /pdf.css - 200 OK (3ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Served asset /jquery.js - 200 OK (5ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Served asset /jquery_ujs.js - 200 OK (4ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Served asset /pdf.js - 200 OK (7ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:34:22 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (47.4ms) Completed 200 OK in 55ms (Views: 54.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:36:11 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (46.0ms) Completed 200 OK in 53ms (Views: 52.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:38:37 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (2.2ms) Completed 200 OK in 41ms (Views: 40.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012 Served asset /pdf.css - 200 OK (4ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012 Served asset /jquery.js - 200 OK (6ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012 Served asset /jquery_ujs.js - 200 OK (9ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012 Served asset /pdf.js - 200 OK (3ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:38:58 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (47.3ms) Completed 200 OK in 55ms (Views: 54.2ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:39:25 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (115.8ms) Completed 200 OK in 130ms (Views: 130.0ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:40:03 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (4.1ms) Completed 500 Internal Server Error in 19ms ActionView::Template::Error (undefined method `details' for app/views/pdf/render_pdf.pdf.prawn:ActionView::Template): app/controllers/pdf_controller.rb:4:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.8ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:42:22 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (118.2ms) Completed 200 OK in 133ms (Views: 133.0ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:44:33 -0600 2012 Processing by PdfController#render_pdf as PDF Rendered pdf/render_pdf.pdf.prawn (4.0ms) Completed 500 Internal Server Error in 18ms ActionView::Template::Error (protected method `locals_code' called for app/views/pdf/render_pdf.pdf.prawn:ActionView::Template): app/controllers/pdf_controller.rb:4:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.5ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.4ms) Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Served asset /pdf.css - 200 OK (3ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Served asset /jquery.js - 200 OK (6ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Served asset /jquery_ujs.js - 200 OK (4ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Served asset /pdf.js - 200 OK (3ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 15ms (Views: 14.9ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /application.css - 200 OK (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /jquery.js - 200 OK (0ms) Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /pdf.css - 200 OK (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /application.js - 200 OK (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /jquery_ujs.js - 200 OK (0ms) Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012 Served asset /pdf.js - 200 OK (0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:19 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.9ms) Completed 500 Internal Server Error in 11ms ActionView::Template::Error (protected method `locals_code' called for app/views/pdf/render_pdf.pdf.prawn:ActionView::Template): app/controllers/pdf_controller.rb:4:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.7ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:38 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (114.9ms) Completed 200 OK in 135ms (Views: 134.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:46:58 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (55.5ms) Completed 200 OK in 65ms (Views: 64.3ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:55:08 -0600 2012 Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172356280 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:8: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 font_size 16 text "Yeah, something bigger!" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:9: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 font_size(25) { text "Even bigger!" } ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:10: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 text "Back to 16 again." ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:11: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 text "Single line on 20 using the ... ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:12: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 text "Back to 16 once more." ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:13: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 font("Courier", :size => 10) do ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:17: syntax error, unexpected tIDENTIFIER, expecting '}' text "Default color is black" move_down 25 ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:18: syntax error, unexpected tIDENTIFIER, expecting '}' text "Changed to red", :color => "FF0000" move_down 25 ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:19: syntax error, unexpected tIDENTIFIER, expecting '}' text "CMYK color", :color => [22, 55, 79, 30] move_down 25 ^ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172356280(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;name = local_assigns[:name];;pdf=Prawn::Document.new {text "Hello There :D" text "now it is here: #{cursor}" 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:23: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:55: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:4: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (0.7ms) Completed 500 Internal Server Error in 11ms ActionView::Template::Error (compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:8: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 font_size 16 text "Yeah, something bigger!" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:9: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 font_size(25) { text "Even bigger!" } ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:10: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 text "Back to 16 again." ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:11: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 text "Single line on 20 using the ... ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:12: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 text "Back to 16 once more." ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:13: syntax error, unexpected tIDENTIFIER, expecting '}' move_down 10 font("Courier", :size => 10) do ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:17: syntax error, unexpected tIDENTIFIER, expecting '}' text "Default color is black" move_down 25 ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:18: syntax error, unexpected tIDENTIFIER, expecting '}' text "Changed to red", :color => "FF0000" move_down 25 ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:19: syntax error, unexpected tIDENTIFIER, expecting '}' text "CMYK color", :color => [22, 55, 79, 30] move_down 25 ^): 5: end 6: 7: text "Let's see which is the current font_size: #{font_size.inspect}" 8: move_down 10 font_size 16 text "Yeah, something bigger!" 9: move_down 10 font_size(25) { text "Even bigger!" } 10: move_down 10 text "Back to 16 again." 11: move_down 10 text "Single line on 20 using the :size option.", :size => 20 app/views/pdf/render_pdf.pdf.prawn:23:in `compile' app/controllers/pdf_controller.rb:4:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.2ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:55:22 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (56.2ms) Completed 200 OK in 140ms (Views: 139.3ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:55:59 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.0ms) Completed 200 OK in 80ms (Views: 79.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:56:14 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (70.7ms) Completed 200 OK in 80ms (Views: 79.7ms | ActiveRecord: 0.0ms)  (0.1ms) select sqlite_version(*)  (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.1ms) PRAGMA index_list("schema_migrations")  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateProducts (20120221152352)  (0.0ms) select sqlite_version(*)  (0.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" decimal, "created_at" datetime, "updated_at" datetime)   (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120221152352')  (0.1ms) select sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.0ms) PRAGMA index_list("products")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) select sqlite_version(*)  (55.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" decimal, "created_at" datetime, "updated_at" datetime)   (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.1ms) PRAGMA index_list("schema_migrations")  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120221152352') Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:24:34 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (139.4ms) Completed 200 OK in 160ms (Views: 160.0ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:27:07 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.6ms) Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:34:17 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (139.1ms) Completed 200 OK in 158ms (Views: 157.9ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:35:34 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.8ms) Completed 500 Internal Server Error in 20ms ActionView::Template::Error (undefined local variable or method `items' for PrawnRails::PrawnHandler:Class): app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (24.9ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:36:21 -0600 2012 Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172692420 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE /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_2172692420(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;pdf=Prawn::Document.new{#{items.inspect}};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:55: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (0.6ms) Completed 500 Internal Server Error in 19ms ActionView::Template::Error (compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4: syntax error, unexpected kEND, expecting '}'): 1: text "Hello There :D" 2: text "now it is here: #{cursor}" 3: text "ITEMS ARE #{@items.inspect}" 4: font("Courier") do 5: text "Written in Courier because we are inside the block." app/views/pdf/render_pdf.pdf.prawn:4:in `compile' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.1ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:37:49 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.6ms) Completed 500 Internal Server Error in 21ms ActionView::Template::Error (undefined local variable or method `template' for #): 1: text "Hello There :D" 2: text "now it is here: #{cursor}" 3: text "ITEMS ARE #{@items.inspect}" 4: font("Courier") do app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240' app/views/pdf/render_pdf.pdf.prawn:1:in `new' app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.8ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:38:01 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.6ms) Completed 500 Internal Server Error in 11ms ActionView::Template::Error (undefined local variable or method `template' for #): 1: text "Hello There :D" 2: text "now it is here: #{cursor}" 3: text "ITEMS ARE #{@items.inspect}" 4: font("Courier") do app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240' app/views/pdf/render_pdf.pdf.prawn:1:in `new' app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.1ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:38:17 -0600 2012 Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690680 RAISED compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected tIDENTIFIER, expecting ')' text "now it is here: #{cursor}" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:34: syntax error, unexpected ')', expecting '}' )};pdf.render ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:35: syntax error, unexpected kENSURE, expecting '}' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: syntax error, unexpected kEND, expecting '}' Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690680(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;pdf=Prawn::Document.new{eval(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:55: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (0.7ms) Completed 500 Internal Server Error in 20ms ActionView::Template::Error (compile error /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected tIDENTIFIER, expecting ')' text "now it is here: #{cursor}" ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:34: syntax error, unexpected ')', expecting '}' )};pdf.render ^ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:35: syntax error, unexpected kENSURE, expecting '}' /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: syntax error, unexpected kEND, expecting '}'): 1: text "Hello There :D" 2: text "now it is here: #{cursor}" 3: text "ITEMS ARE #{@items.inspect}" 4: font("Courier") do 5: text "Written in Courier because we are inside the block." app/views/pdf/render_pdf.pdf.prawn:37:in `compile' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.4ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:39:36 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (46.1ms) Completed 200 OK in 65ms (Views: 64.7ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:40:01 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (0.8ms) Completed 500 Internal Server Error in 20ms ActionView::Template::Error (undefined local variable or method `items' for PrawnRails::PrawnHandler:Class): app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.3ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:40:57 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (141.3ms) Completed 500 Internal Server Error in 190ms ActionView::Template::Error (undefined local variable or method `pdf' for #<#:0x103052ba8>): 1: text "Hello There :D" 2: text "now it is here: #{cursor}" 3: text "ITEMS ARE #{@items.inspect}" 4: font("Courier") do app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690580' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (87.2ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:54:19 -0600 2012 Processing by PdfController#render_pdf as HTML ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690320 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_2172690320(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 << /Creator /Producer >> endobj 2 0 obj << /Pages 3 0 R /Type /Catalog >> endobj 3 0 obj << /Kids [5 0 R] /Type /Pages /Count 1 >> endobj 4 0 obj << /Length 56 >> stream q BT 36 747.384 Td /F1.0 12 Tf [<68656c6c6f>] TJ ET Q endstream endobj 5 0 obj << /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /Font << /F1.0 6 0 R >> >> /Contents 4 0 R /Type /Page /MediaBox [0 0 612.0 792.0] /Parent 3 0 R >> endobj 6 0 obj << /Encoding /WinAnsiEncoding /Subtype /Type1 /BaseFont /Helvetica /Type /Font >> endobj xref 0 7 0000000000 65535 f 0000000015 00000 n 0000000109 00000 n 0000000158 00000 n 0000000215 00000 n 0000000321 00000 n 0000000499 00000 n trailer << /Root 2 0 R /Info 1 0 R /Size 7 >> startxref 596 %%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:55: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.rb:193:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_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/action_dispatch/middleware/callbacks.rb:28:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54 /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap' /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:in `require' script/rails:6 Rendered pdf/render_pdf.pdf.prawn (48.5ms) Completed 500 Internal Server Error in 69ms ActionView::Template::Error (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 ^): 1: text "Hello There :D" 2: text "now it is here: #{cursor}" 3: text "ITEMS ARE #{@items.inspect}" 4: font("Courier") do app/views/pdf/render_pdf.pdf.prawn:1:in `compile' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:39:27 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (135.3ms) Completed 200 OK in 154ms (Views: 153.9ms | ActiveRecord: 0.0ms) Started GET "/pdf/rendering" for 127.0.0.1 at Tue Feb 21 11:48:16 -0600 2012 ActionController::RoutingError (No route matches [GET] "/pdf/rendering"): Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (3.3ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:48:21 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (138.5ms) Completed 200 OK in 153ms (Views: 152.5ms | ActiveRecord: 0.0ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:49:31 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.4ms) Completed 500 Internal Server Error in 11ms ActionView::Template::Error (undefined method `text' for nil:NilClass): 1: pdf.text "Hello There :D" 2: pdf.text "now it is here: #{cursor}" 3: pdf.text "ITems are #{@items.inspect}" 4: pdf.font("Courier") do app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780' app/views/pdf/render_pdf.pdf.prawn:1:in `new' app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.6ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:49:32 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (1.1ms) Completed 500 Internal Server Error in 11ms ActionView::Template::Error (undefined method `text' for nil:NilClass): 1: pdf.text "Hello There :D" 2: pdf.text "now it is here: #{cursor}" 3: pdf.text "ITems are #{@items.inspect}" 4: pdf.font("Courier") do app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780' app/views/pdf/render_pdf.pdf.prawn:1:in `new' app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.4ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:50:54 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (143.0ms) Completed 500 Internal Server Error in 191ms ActionView::Template::Error (undefined local variable or method `cursor' for #<#:0x10304fbd8>): 1: pdf.text "Hello There :D" 2: pdf.text "now it is here: #{cursor}" 3: pdf.text "ITems are #{@items.inspect}" 4: pdf.font("Courier") do 5: pdf.text "Written in Courier because we are inside the block." app/views/pdf/render_pdf.pdf.prawn:2:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172680560' app/controllers/pdf_controller.rb:5:in `render_pdf' Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (87.3ms) Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:51:07 -0600 2012 Processing by PdfController#render_pdf as HTML Rendered pdf/render_pdf.pdf.prawn (68.9ms) Completed 200 OK in 78ms (Views: 77.4ms | ActiveRecord: 0.0ms)