prawn-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.markdown +61 -0
  3. data/Rakefile +39 -0
  4. data/lib/prawn-rails.rb +3 -0
  5. data/lib/prawn-rails/engine.rb +7 -0
  6. data/lib/prawn-rails/prawn_handler.rb +17 -0
  7. data/lib/prawn-rails/prawn_rails_helper.rb +41 -0
  8. data/lib/prawn-rails/version.rb +3 -0
  9. data/lib/tasks/prawn-rails_tasks.rake +4 -0
  10. data/test/dummy/Rakefile +7 -0
  11. data/test/dummy/app/assets/javascripts/application.js +9 -0
  12. data/test/dummy/app/assets/javascripts/pdf.js +2 -0
  13. data/test/dummy/app/assets/javascripts/products.js +2 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  15. data/test/dummy/app/assets/stylesheets/pdf.css +4 -0
  16. data/test/dummy/app/assets/stylesheets/products.css +4 -0
  17. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  18. data/test/dummy/app/controllers/application_controller.rb +3 -0
  19. data/test/dummy/app/controllers/pdf_controller.rb +10 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/helpers/pdf_helper.rb +2 -0
  22. data/test/dummy/app/helpers/products_helper.rb +2 -0
  23. data/test/dummy/app/models/product.rb +2 -0
  24. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/test/dummy/app/views/pdf/render_pdf.html.erb +2 -0
  26. data/test/dummy/app/views/pdf/render_pdf.pdf.prawn +34 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +45 -0
  29. data/test/dummy/config/boot.rb +10 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +30 -0
  33. data/test/dummy/config/environments/production.rb +60 -0
  34. data/test/dummy/config/environments/test.rb +39 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/inflections.rb +10 -0
  37. data/test/dummy/config/initializers/mime_types.rb +5 -0
  38. data/test/dummy/config/initializers/secret_token.rb +7 -0
  39. data/test/dummy/config/initializers/session_store.rb +8 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +5 -0
  42. data/test/dummy/config/routes.rb +62 -0
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/schema.rb +22 -0
  45. data/test/dummy/db/test.sqlite3 +0 -0
  46. data/test/dummy/log/development.log +2369 -0
  47. data/test/dummy/log/test.log +1290 -0
  48. data/test/dummy/public/404.html +26 -0
  49. data/test/dummy/public/422.html +26 -0
  50. data/test/dummy/public/500.html +26 -0
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/dummy/script/rails +6 -0
  53. data/test/dummy/test/functional/pdf_controller_test.rb +20 -0
  54. data/test/dummy/test/unit/helpers/pdf_helper_test.rb +4 -0
  55. data/test/dummy/tmp/cache/assets/C1C/440/sprockets%2F327750d15e74b4631b7219847f00528a +374 -0
  56. data/test/dummy/tmp/cache/assets/CAE/130/sprockets%2F5673d456292004d3af77fbb34191a3d9 +377 -0
  57. data/test/dummy/tmp/cache/assets/CFF/990/sprockets%2F7cc4697a647f5ef443f0855f8831f7a9 +0 -0
  58. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  59. data/test/dummy/tmp/cache/assets/D43/620/sprockets%2Ff65e4a70390755ca5c1aeb1d7c596e47 +9271 -0
  60. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  61. data/test/dummy/tmp/cache/assets/D6F/7F0/sprockets%2Fb93a9d8d60404a4c8a5f64e1c8ae4d44 +0 -0
  62. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +9651 -0
  63. data/test/dummy/tmp/cache/assets/DA1/220/sprockets%2F79ecb141dd3f168f83c4d3f1cf075b4d +0 -0
  64. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  65. data/test/dummy/tmp/cache/assets/E2F/1D0/sprockets%2Fa19e16cee5f9ddbfbb85e2b9dc2420b7 +9268 -0
  66. data/test/dummy/tmp/cache/assets/E3A/290/sprockets%2F8657bc1d0b7bacf9b7ce74a379fbdee6 +0 -0
  67. data/test/integration/navigation_test.rb +10 -0
  68. data/test/prawn-rails_test.rb +7 -0
  69. data/test/test_helper.rb +10 -0
  70. metadata +238 -0
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,30 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+
28
+ # Expands the lines which load the assets
29
+ config.assets.debug = true
30
+ end
@@ -0,0 +1,60 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to Rails.root.join("public/assets")
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Use a different logger for distributed setups
37
+ # config.logger = SyslogLogger.new
38
+
39
+ # Use a different cache store in production
40
+ # config.cache_store = :mem_cache_store
41
+
42
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
+ # config.action_controller.asset_host = "http://assets.example.com"
44
+
45
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
+ # config.assets.precompile += %w( search.js )
47
+
48
+ # Disable delivery errors, bad email addresses will be ignored
49
+ # config.action_mailer.raise_delivery_errors = false
50
+
51
+ # Enable threaded mode
52
+ # config.threadsafe!
53
+
54
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
+ # the I18n.default_locale when a translation can not be found)
56
+ config.i18n.fallbacks = true
57
+
58
+ # Send deprecation notices to registered listeners
59
+ config.active_support.deprecation = :notify
60
+ end
@@ -0,0 +1,39 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
33
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
34
+ # like if you have constraints or database-specific column types
35
+ # config.active_record.schema_format = :sql
36
+
37
+ # Print deprecation notices to the stderr
38
+ config.active_support.deprecation = :stderr
39
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '4f337f0063fbb4a724dd8da15419679300da990ae4f6c94d36c714a3cd07e9653fc42d902cf33a9b9449a28e7eb2673f928172d65a090fa3c9156d6beea8d16c'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters :format => [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,62 @@
1
+ Dummy::Application.routes.draw do
2
+ resources :products
3
+
4
+ get "pdf/render_pdf"
5
+
6
+ # The priority is based upon order of creation:
7
+ # first created -> highest priority.
8
+
9
+ # Sample of regular route:
10
+ # match 'products/:id' => 'catalog#view'
11
+ # Keep in mind you can assign values other than :controller and :action
12
+
13
+ # Sample of named route:
14
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
15
+ # This route can be invoked with purchase_url(:id => product.id)
16
+
17
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
18
+ # resources :products
19
+
20
+ # Sample resource route with options:
21
+ # resources :products do
22
+ # member do
23
+ # get 'short'
24
+ # post 'toggle'
25
+ # end
26
+ #
27
+ # collection do
28
+ # get 'sold'
29
+ # end
30
+ # end
31
+
32
+ # Sample resource route with sub-resources:
33
+ # resources :products do
34
+ # resources :comments, :sales
35
+ # resource :seller
36
+ # end
37
+
38
+ # Sample resource route with more complex sub-resources
39
+ # resources :products do
40
+ # resources :comments
41
+ # resources :sales do
42
+ # get 'recent', :on => :collection
43
+ # end
44
+ # end
45
+
46
+ # Sample resource route within a namespace:
47
+ # namespace :admin do
48
+ # # Directs /admin/products/* to Admin::ProductsController
49
+ # # (app/controllers/admin/products_controller.rb)
50
+ # resources :products
51
+ # end
52
+
53
+ # You can have the root of your site routed with "root"
54
+ # just remember to delete public/index.html.
55
+ # root :to => 'welcome#index'
56
+
57
+ # See how all your routes lay out with "rake routes"
58
+
59
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
60
+ # Note: This route will make all actions in every controller accessible via GET requests.
61
+ # match ':controller(/:action(/:id(.:format)))'
62
+ end
File without changes
@@ -0,0 +1,22 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended to check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(:version => 20120221152352) do
14
+
15
+ create_table "products", :force => true do |t|
16
+ t.string "name"
17
+ t.decimal "price"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ end
File without changes
@@ -0,0 +1,2369 @@
1
+
2
+
3
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:17:04 -0600 2012
4
+ Processing by PdfController#render_pdf as PDF
5
+ Rendered pdf/render_pdf.pdf.prawn (10.7ms)
6
+ Completed 500 Internal Server Error in 29ms
7
+
8
+ ActionView::Template::Error (undefined method `call' for PrawnRails::PrawnHandler:Class):
9
+
10
+
11
+ 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)
12
+ 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)
13
+ 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)
14
+
15
+
16
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:17:27 -0600 2012
17
+ Processing by PdfController#render_pdf as PDF
18
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172514920 RAISED compile error
19
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end
20
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172514920(local_assigns, output_buffer)
21
+ _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;
22
+ ensure
23
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
24
+ end
25
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2:in `compile'
26
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
27
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
28
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
29
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
30
+ /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'
31
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
32
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
33
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
34
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
35
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
36
+ /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'
37
+ /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'
38
+ /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'
39
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
40
+ /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'
41
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
42
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
43
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
44
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
45
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
46
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
47
+ /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'
48
+ /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'
49
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
50
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
51
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
52
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
53
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
54
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
55
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
56
+ /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'
57
+ /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'
58
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
59
+ /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'
60
+ /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'
61
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
62
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
63
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
64
+ /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'
65
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
66
+ /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'
67
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
68
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
69
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
70
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
71
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
72
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
73
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
74
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
75
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
76
+ /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'
77
+ /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'
78
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
79
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
80
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
81
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
82
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
83
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
84
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
85
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
86
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
87
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
88
+ /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'
89
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
90
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
91
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
92
+ /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'
93
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
94
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
95
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
96
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
97
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
98
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
99
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
100
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
101
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
102
+ /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'
103
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
104
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
105
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
106
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
107
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
108
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
109
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
110
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
111
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
112
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
113
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
114
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
115
+ /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'
116
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
117
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
118
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
119
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
120
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
121
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
122
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
123
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
124
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
125
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
126
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
127
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
128
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
129
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
130
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
131
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
132
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
133
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
134
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
135
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
136
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
137
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
138
+ script/rails:6:in `require'
139
+ script/rails:6
140
+ Rendered pdf/render_pdf.pdf.prawn (4.3ms)
141
+ Completed 500 Internal Server Error in 18ms
142
+
143
+ ActionView::Template::Error (compile error
144
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end):
145
+ 1: text "Hello There :D"
146
+ app/views/pdf/render_pdf.pdf.prawn:2:in `compile'
147
+
148
+ 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)
149
+ 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)
150
+ 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)
151
+
152
+
153
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:18:34 -0600 2012
154
+ Processing by PdfController#render_pdf as PDF
155
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172514940 RAISED compile error
156
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end
157
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172514940(local_assigns, output_buffer)
158
+ _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;
159
+ ensure
160
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
161
+ end
162
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2:in `compile'
163
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
164
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
165
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
166
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
167
+ /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'
168
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
169
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
170
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
171
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
172
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
173
+ /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'
174
+ /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'
175
+ /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'
176
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
177
+ /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'
178
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
179
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
180
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
181
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
182
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
183
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
184
+ /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'
185
+ /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'
186
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
187
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
188
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
189
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
190
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
191
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
192
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
193
+ /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'
194
+ /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'
195
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
196
+ /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'
197
+ /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'
198
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
199
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
200
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
201
+ /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'
202
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
203
+ /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'
204
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
205
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
206
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
207
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
208
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
209
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
210
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
211
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
212
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
213
+ /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'
214
+ /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'
215
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
216
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
217
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
218
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
219
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
220
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
221
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
222
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
223
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
224
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
225
+ /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'
226
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
227
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
228
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
229
+ /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'
230
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
231
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
232
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
233
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
234
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
235
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
236
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
237
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
238
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
239
+ /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'
240
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
241
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
242
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
243
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
244
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
245
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
246
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
247
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
248
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
249
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
250
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
251
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
252
+ /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'
253
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
254
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
255
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
256
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
257
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
258
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
259
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
260
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
261
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
262
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
263
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
264
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
265
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
266
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
267
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
268
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
269
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
270
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
271
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
272
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
273
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
274
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
275
+ script/rails:6:in `require'
276
+ script/rails:6
277
+ Rendered pdf/render_pdf.pdf.prawn (3.7ms)
278
+ Completed 500 Internal Server Error in 17ms
279
+
280
+ ActionView::Template::Error (compile error
281
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end):
282
+ 1: text "Hello There :D"
283
+ app/views/pdf/render_pdf.pdf.prawn:2:in `compile'
284
+
285
+ 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)
286
+ 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)
287
+ 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)
288
+
289
+
290
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:19:19 -0600 2012
291
+ Processing by PdfController#render_pdf as PDF
292
+ Rendered pdf/render_pdf.pdf.prawn (86.8ms)
293
+ Completed 500 Internal Server Error in 119ms
294
+
295
+ ActionView::Template::Error (undefined local variable or method `template' for #<#<Class:0x103016b08>:0x103012af8>):
296
+ 1: text "Hello There :D"
297
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172533920'
298
+
299
+ 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)
300
+ 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)
301
+ 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)
302
+
303
+
304
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:19:49 -0600 2012
305
+ Processing by PdfController#render_pdf as PDF
306
+ Rendered pdf/render_pdf.pdf.prawn (85.8ms)
307
+ Completed 500 Internal Server Error in 118ms
308
+
309
+ ActionView::Template::Error (undefined local variable or method `app' for #<#<Class:0x10301aca8>:0x103013d68>):
310
+ 1: text "Hello There :D"
311
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172563200'
312
+
313
+ 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)
314
+ 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)
315
+ 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)
316
+
317
+
318
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:10 -0600 2012
319
+ Processing by PdfController#render_pdf as PDF
320
+ Rendered pdf/render_pdf.pdf.prawn (0.8ms)
321
+ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.0ms)
322
+
323
+
324
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:37 -0600 2012
325
+ Processing by PdfController#render_pdf as PDF
326
+ Rendered pdf/render_pdf.pdf.prawn (0.2ms)
327
+ Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.0ms)
328
+
329
+
330
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:46 -0600 2012
331
+ Processing by PdfController#render_pdf as PDF
332
+ Rendered pdf/render_pdf.pdf.prawn (0.0ms)
333
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
334
+
335
+
336
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:20:54 -0600 2012
337
+ Processing by PdfController#render_pdf as PDF
338
+ Rendered pdf/render_pdf.pdf.prawn (0.0ms)
339
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
340
+
341
+
342
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:21:10 -0600 2012
343
+ Processing by PdfController#render_pdf as PDF
344
+ Rendered pdf/render_pdf.pdf.prawn (0.1ms)
345
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
346
+
347
+
348
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:21:55 -0600 2012
349
+ Processing by PdfController#render_pdf as PDF
350
+ Rendered pdf/render_pdf.pdf.prawn (0.8ms)
351
+ Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
352
+
353
+
354
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:22:34 -0600 2012
355
+ Processing by PdfController#render_pdf as PDF
356
+ Rendered pdf/render_pdf.pdf.prawn (0.1ms)
357
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
358
+
359
+
360
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:22:50 -0600 2012
361
+ Processing by PdfController#render_pdf as PDF
362
+ Rendered pdf/render_pdf.pdf.prawn (0.1ms)
363
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
364
+
365
+
366
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:23:34 -0600 2012
367
+ Processing by PdfController#render_pdf as PDF
368
+ Rendered pdf/render_pdf.pdf.prawn (0.2ms)
369
+ Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms)
370
+
371
+
372
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:26:40 -0600 2012
373
+ Processing by PdfController#render_pdf as PDF
374
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172580280 RAISED compile error
375
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string
376
+ ...t_buffer = @output_buffer;;%PDF-1.3
377
+ ^
378
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND
379
+ ...t_buffer = @output_buffer;;%PDF-1.3
380
+ ^
381
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172580280(local_assigns, output_buffer)
382
+ _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;%PDF-1.3
383
+ %����
384
+ 1 0 obj
385
+ << /Creator <feff0050007200610077006e>
386
+ /Producer <feff0050007200610077006e>
387
+ >>
388
+ endobj
389
+ 2 0 obj
390
+ << /Pages 3 0 R
391
+ /Type /Catalog
392
+ >>
393
+ endobj
394
+ 3 0 obj
395
+ << /Kids [5 0 R]
396
+ /Type /Pages
397
+ /Count 1
398
+ >>
399
+ endobj
400
+ 4 0 obj
401
+ << /Length 4
402
+ >>
403
+ stream
404
+ q
405
+ Q
406
+
407
+ endstream
408
+ endobj
409
+ 5 0 obj
410
+ << /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
411
+ >>
412
+ /Contents 4 0 R
413
+ /Type /Page
414
+ /MediaBox [0 0 612.0 792.0]
415
+ /Parent 3 0 R
416
+ >>
417
+ endobj
418
+ xref
419
+ 0 6
420
+ 0000000000 65535 f
421
+ 0000000015 00000 n
422
+ 0000000109 00000 n
423
+ 0000000158 00000 n
424
+ 0000000215 00000 n
425
+ 0000000268 00000 n
426
+ trailer
427
+ << /Root 2 0 R
428
+ /Size 6
429
+ /Info 1 0 R
430
+ >>
431
+ startxref
432
+ 422
433
+ %%EOF
434
+
435
+ ensure
436
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
437
+ end
438
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1:in `compile'
439
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
440
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
441
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
442
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
443
+ /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'
444
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
445
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
446
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
447
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
448
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
449
+ /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'
450
+ /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'
451
+ /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'
452
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
453
+ /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'
454
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
455
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
456
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
457
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
458
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
459
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
460
+ /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'
461
+ /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'
462
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
463
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
464
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
465
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
466
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
467
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
468
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
469
+ /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'
470
+ /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'
471
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
472
+ /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'
473
+ /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'
474
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
475
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
476
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
477
+ /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'
478
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
479
+ /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'
480
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
481
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
482
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
483
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
484
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
485
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
486
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
487
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
488
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
489
+ /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'
490
+ /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'
491
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
492
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
493
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
494
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
495
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
496
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
497
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
498
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
499
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
500
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
501
+ /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'
502
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
503
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
504
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
505
+ /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'
506
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
507
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
508
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
509
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
510
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
511
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
512
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
513
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
514
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
515
+ /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'
516
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
517
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
518
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
519
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
520
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
521
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
522
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
523
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
524
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
525
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
526
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
527
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
528
+ /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'
529
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
530
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
531
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
532
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
533
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
534
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
535
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
536
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
537
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
538
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
539
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
540
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
541
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
542
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
543
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
544
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
545
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
546
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
547
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
548
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
549
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
550
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
551
+ script/rails:6:in `require'
552
+ script/rails:6
553
+ Rendered pdf/render_pdf.pdf.prawn (5.1ms)
554
+ Completed 500 Internal Server Error in 19ms
555
+
556
+ ActionView::Template::Error (compile error
557
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string
558
+ ...t_buffer = @output_buffer;;%PDF-1.3
559
+ ^
560
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND
561
+ ...t_buffer = @output_buffer;;%PDF-1.3
562
+ ^):
563
+ 1: text "Hello There :D"
564
+ app/views/pdf/render_pdf.pdf.prawn:1:in `compile'
565
+
566
+ 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)
567
+ 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)
568
+ 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)
569
+
570
+
571
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:30:37 -0600 2012
572
+ Processing by PdfController#render_pdf as PDF
573
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172538260 RAISED compile error
574
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string
575
+ ...t_buffer = @output_buffer;;%PDF-1.3
576
+ ^
577
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND
578
+ ...t_buffer = @output_buffer;;%PDF-1.3
579
+ ^
580
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172538260(local_assigns, output_buffer)
581
+ _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf";_old_output_buffer = @output_buffer;;%PDF-1.3
582
+ %����
583
+ 1 0 obj
584
+ << /Creator <feff0050007200610077006e>
585
+ /Producer <feff0050007200610077006e>
586
+ >>
587
+ endobj
588
+ 2 0 obj
589
+ << /Pages 3 0 R
590
+ /Type /Catalog
591
+ >>
592
+ endobj
593
+ 3 0 obj
594
+ << /Kids [5 0 R]
595
+ /Type /Pages
596
+ /Count 1
597
+ >>
598
+ endobj
599
+ 4 0 obj
600
+ << /Length 4
601
+ >>
602
+ stream
603
+ q
604
+ Q
605
+
606
+ endstream
607
+ endobj
608
+ 5 0 obj
609
+ << /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
610
+ >>
611
+ /Contents 4 0 R
612
+ /Type /Page
613
+ /MediaBox [0 0 612.0 792.0]
614
+ /Parent 3 0 R
615
+ >>
616
+ endobj
617
+ xref
618
+ 0 6
619
+ 0000000000 65535 f
620
+ 0000000015 00000 n
621
+ 0000000109 00000 n
622
+ 0000000158 00000 n
623
+ 0000000215 00000 n
624
+ 0000000268 00000 n
625
+ trailer
626
+ << /Root 2 0 R
627
+ /Size 6
628
+ /Info 1 0 R
629
+ >>
630
+ startxref
631
+ 422
632
+ %%EOF
633
+
634
+ ensure
635
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
636
+ end
637
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1:in `compile'
638
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
639
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
640
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
641
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
642
+ /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'
643
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
644
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
645
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
646
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
647
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
648
+ /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'
649
+ /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'
650
+ /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'
651
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
652
+ /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'
653
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
654
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
655
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
656
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
657
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
658
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
659
+ /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'
660
+ /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'
661
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
662
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
663
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
664
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
665
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
666
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
667
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
668
+ /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'
669
+ /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'
670
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
671
+ /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'
672
+ /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'
673
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
674
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
675
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
676
+ /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'
677
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
678
+ /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'
679
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
680
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
681
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
682
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
683
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
684
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
685
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
686
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
687
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
688
+ /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'
689
+ /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'
690
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
691
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
692
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
693
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
694
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
695
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
696
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
697
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
698
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
699
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
700
+ /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'
701
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
702
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
703
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
704
+ /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'
705
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
706
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
707
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
708
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
709
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
710
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
711
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
712
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
713
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
714
+ /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'
715
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
716
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
717
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
718
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
719
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
720
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
721
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
722
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
723
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
724
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
725
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
726
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
727
+ /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'
728
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
729
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
730
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
731
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
732
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
733
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
734
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
735
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
736
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
737
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
738
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
739
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
740
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
741
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
742
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
743
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
744
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
745
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
746
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
747
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
748
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
749
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
750
+ script/rails:6:in `require'
751
+ script/rails:6
752
+ Rendered pdf/render_pdf.pdf.prawn (5.2ms)
753
+ Completed 500 Internal Server Error in 19ms
754
+
755
+ ActionView::Template::Error (compile error
756
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string
757
+ ...t_buffer = @output_buffer;;%PDF-1.3
758
+ ^
759
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND
760
+ ...t_buffer = @output_buffer;;%PDF-1.3
761
+ ^):
762
+ 1: text "Hello There :D"
763
+ app/views/pdf/render_pdf.pdf.prawn:1:in `compile'
764
+
765
+ 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)
766
+ 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)
767
+ 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)
768
+
769
+
770
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:31:39 -0600 2012
771
+ Processing by PdfController#render_pdf as PDF
772
+ Rendered pdf/render_pdf.pdf.prawn (4.4ms)
773
+ Completed 500 Internal Server Error in 20ms
774
+
775
+ ActionView::Template::Error (undefined local variable or method `stf' for PrawnRails::PrawnHandler:Class):
776
+
777
+
778
+ 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)
779
+ 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)
780
+ 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)
781
+
782
+
783
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:32:38 -0600 2012
784
+ Processing by PdfController#render_pdf as PDF
785
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172538220 RAISED compile error
786
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end
787
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172538220(local_assigns, output_buffer)
788
+ _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
789
+ ensure
790
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
791
+ end
792
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2:in `compile'
793
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
794
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
795
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
796
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
797
+ /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'
798
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
799
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
800
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
801
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
802
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
803
+ /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'
804
+ /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'
805
+ /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'
806
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
807
+ /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'
808
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
809
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
810
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
811
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
812
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
813
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
814
+ /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'
815
+ /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'
816
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
817
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
818
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
819
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
820
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
821
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
822
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
823
+ /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'
824
+ /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'
825
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
826
+ /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'
827
+ /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'
828
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
829
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
830
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
831
+ /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'
832
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
833
+ /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'
834
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
835
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
836
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
837
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
838
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
839
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
840
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
841
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
842
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
843
+ /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'
844
+ /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'
845
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
846
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
847
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
848
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
849
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
850
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
851
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
852
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
853
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
854
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
855
+ /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'
856
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
857
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
858
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
859
+ /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'
860
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
861
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
862
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
863
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
864
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
865
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
866
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
867
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
868
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
869
+ /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'
870
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
871
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
872
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
873
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
874
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
875
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
876
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
877
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
878
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
879
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
880
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
881
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
882
+ /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'
883
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
884
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
885
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
886
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
887
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
888
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
889
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
890
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
891
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
892
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
893
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
894
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
895
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
896
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
897
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
898
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
899
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
900
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
901
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
902
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
903
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
904
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
905
+ script/rails:6:in `require'
906
+ script/rails:6
907
+ Rendered pdf/render_pdf.pdf.prawn (3.7ms)
908
+ Completed 500 Internal Server Error in 17ms
909
+
910
+ ActionView::Template::Error (compile error
911
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE, expecting $end):
912
+ 1: text "Hello There :D"
913
+ app/views/pdf/render_pdf.pdf.prawn:2:in `compile'
914
+
915
+ 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)
916
+ 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)
917
+ 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)
918
+
919
+
920
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:33:39 -0600 2012
921
+ Processing by PdfController#render_pdf as PDF
922
+ Rendered pdf/render_pdf.pdf.prawn (113.6ms)
923
+ Completed 200 OK in 127ms (Views: 127.0ms | ActiveRecord: 0.0ms)
924
+
925
+
926
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
927
+ Processing by PdfController#render_pdf as HTML
928
+ Rendered pdf/render_pdf.html.erb within layouts/application (2.5ms)
929
+ Compiled application.css (2ms) (pid 43978)
930
+ Compiled pdf.css (0ms) (pid 43978)
931
+ Compiled application.js (13ms) (pid 43978)
932
+ Compiled jquery.js (32ms) (pid 43978)
933
+ Compiled jquery_ujs.js (3ms) (pid 43978)
934
+ Compiled pdf.js (0ms) (pid 43978)
935
+ Completed 200 OK in 395ms (Views: 394.5ms | ActiveRecord: 0.0ms)
936
+
937
+
938
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
939
+ Served asset /application.css - 200 OK (0ms)
940
+
941
+
942
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
943
+ Served asset /pdf.css - 200 OK (3ms)
944
+
945
+
946
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
947
+ Served asset /jquery.js - 200 OK (5ms)
948
+
949
+
950
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
951
+ Served asset /jquery_ujs.js - 200 OK (4ms)
952
+
953
+
954
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
955
+ Served asset /pdf.js - 200 OK (7ms)
956
+
957
+
958
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:34:18 -0600 2012
959
+ Served asset /application.js - 200 OK (0ms)
960
+
961
+
962
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:34:22 -0600 2012
963
+ Processing by PdfController#render_pdf as PDF
964
+ Rendered pdf/render_pdf.pdf.prawn (47.4ms)
965
+ Completed 200 OK in 55ms (Views: 54.5ms | ActiveRecord: 0.0ms)
966
+
967
+
968
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:36:11 -0600 2012
969
+ Processing by PdfController#render_pdf as PDF
970
+ Rendered pdf/render_pdf.pdf.prawn (46.0ms)
971
+ Completed 200 OK in 53ms (Views: 52.5ms | ActiveRecord: 0.0ms)
972
+
973
+
974
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:38:37 -0600 2012
975
+ Processing by PdfController#render_pdf as HTML
976
+ Rendered pdf/render_pdf.html.erb within layouts/application (2.2ms)
977
+ Completed 200 OK in 41ms (Views: 40.3ms | ActiveRecord: 0.0ms)
978
+
979
+
980
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012
981
+ Served asset /application.css - 200 OK (0ms)
982
+
983
+
984
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012
985
+ Served asset /pdf.css - 200 OK (4ms)
986
+
987
+
988
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012
989
+ Served asset /jquery.js - 200 OK (6ms)
990
+
991
+
992
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012
993
+ Served asset /jquery_ujs.js - 200 OK (9ms)
994
+
995
+
996
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012
997
+ Served asset /pdf.js - 200 OK (3ms)
998
+
999
+
1000
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:38 -0600 2012
1001
+ Served asset /application.js - 200 OK (0ms)
1002
+
1003
+
1004
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1005
+ Processing by PdfController#render_pdf as HTML
1006
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms)
1007
+ Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)
1008
+
1009
+
1010
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1011
+ Served asset /application.js - 200 OK (0ms)
1012
+
1013
+
1014
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1015
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1016
+
1017
+
1018
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1019
+ Served asset /pdf.js - 200 OK (0ms)
1020
+
1021
+
1022
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1023
+ Served asset /pdf.css - 200 OK (0ms)
1024
+
1025
+
1026
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1027
+ Served asset /application.css - 200 OK (0ms)
1028
+
1029
+
1030
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:47 -0600 2012
1031
+ Served asset /jquery.js - 200 OK (0ms)
1032
+
1033
+
1034
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1035
+ Processing by PdfController#render_pdf as HTML
1036
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1037
+ Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)
1038
+
1039
+
1040
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1041
+ Served asset /pdf.js - 200 OK (0ms)
1042
+
1043
+
1044
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1045
+ Served asset /application.css - 200 OK (0ms)
1046
+
1047
+
1048
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1049
+ Served asset /application.js - 200 OK (0ms)
1050
+
1051
+
1052
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1053
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1054
+
1055
+
1056
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1057
+ Served asset /pdf.css - 200 OK (0ms)
1058
+
1059
+
1060
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:38:48 -0600 2012
1061
+ Served asset /jquery.js - 200 OK (0ms)
1062
+
1063
+
1064
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:38:58 -0600 2012
1065
+ Processing by PdfController#render_pdf as PDF
1066
+ Rendered pdf/render_pdf.pdf.prawn (47.3ms)
1067
+ Completed 200 OK in 55ms (Views: 54.2ms | ActiveRecord: 0.0ms)
1068
+
1069
+
1070
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:39:25 -0600 2012
1071
+ Processing by PdfController#render_pdf as PDF
1072
+ Rendered pdf/render_pdf.pdf.prawn (115.8ms)
1073
+ Completed 200 OK in 130ms (Views: 130.0ms | ActiveRecord: 0.0ms)
1074
+
1075
+
1076
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:40:03 -0600 2012
1077
+ Processing by PdfController#render_pdf as PDF
1078
+ Rendered pdf/render_pdf.pdf.prawn (4.1ms)
1079
+ Completed 500 Internal Server Error in 19ms
1080
+
1081
+ ActionView::Template::Error (undefined method `details' for app/views/pdf/render_pdf.pdf.prawn:ActionView::Template):
1082
+ app/controllers/pdf_controller.rb:4:in `render_pdf'
1083
+
1084
+ 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)
1085
+ 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)
1086
+ 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)
1087
+
1088
+
1089
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:42:22 -0600 2012
1090
+ Processing by PdfController#render_pdf as PDF
1091
+ Rendered pdf/render_pdf.pdf.prawn (118.2ms)
1092
+ Completed 200 OK in 133ms (Views: 133.0ms | ActiveRecord: 0.0ms)
1093
+
1094
+
1095
+ Started GET "/pdf/render_pdf.pdf" for 127.0.0.1 at Mon Feb 20 17:44:33 -0600 2012
1096
+ Processing by PdfController#render_pdf as PDF
1097
+ Rendered pdf/render_pdf.pdf.prawn (4.0ms)
1098
+ Completed 500 Internal Server Error in 18ms
1099
+
1100
+ ActionView::Template::Error (protected method `locals_code' called for app/views/pdf/render_pdf.pdf.prawn:ActionView::Template):
1101
+ app/controllers/pdf_controller.rb:4:in `render_pdf'
1102
+
1103
+ 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)
1104
+ 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)
1105
+ 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)
1106
+
1107
+
1108
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1109
+ Processing by PdfController#render_pdf as HTML
1110
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.4ms)
1111
+ Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.0ms)
1112
+
1113
+
1114
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1115
+ Served asset /application.css - 200 OK (0ms)
1116
+
1117
+
1118
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1119
+ Served asset /pdf.css - 200 OK (3ms)
1120
+
1121
+
1122
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1123
+ Served asset /jquery.js - 200 OK (6ms)
1124
+
1125
+
1126
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1127
+ Served asset /jquery_ujs.js - 200 OK (4ms)
1128
+
1129
+
1130
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1131
+ Served asset /pdf.js - 200 OK (3ms)
1132
+
1133
+
1134
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:54 -0600 2012
1135
+ Served asset /application.js - 200 OK (0ms)
1136
+
1137
+
1138
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1139
+ Processing by PdfController#render_pdf as HTML
1140
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1141
+ Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)
1142
+
1143
+
1144
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1145
+ Served asset /application.js - 200 OK (0ms)
1146
+
1147
+
1148
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1149
+ Served asset /jquery.js - 200 OK (0ms)
1150
+
1151
+
1152
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1153
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1154
+
1155
+
1156
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1157
+ Served asset /pdf.js - 200 OK (0ms)
1158
+
1159
+
1160
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1161
+ Served asset /application.css - 200 OK (0ms)
1162
+
1163
+
1164
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:56 -0600 2012
1165
+ Served asset /pdf.css - 200 OK (0ms)
1166
+
1167
+
1168
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1169
+ Processing by PdfController#render_pdf as HTML
1170
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1171
+ Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms)
1172
+
1173
+
1174
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1175
+ Served asset /jquery.js - 200 OK (0ms)
1176
+
1177
+
1178
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1179
+ Served asset /application.js - 200 OK (0ms)
1180
+
1181
+
1182
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1183
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1184
+
1185
+
1186
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1187
+ Served asset /application.css - 200 OK (0ms)
1188
+
1189
+
1190
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1191
+ Served asset /pdf.js - 200 OK (0ms)
1192
+
1193
+
1194
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:57 -0600 2012
1195
+ Served asset /pdf.css - 200 OK (0ms)
1196
+
1197
+
1198
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1199
+ Processing by PdfController#render_pdf as HTML
1200
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms)
1201
+ Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms)
1202
+
1203
+
1204
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1205
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1206
+
1207
+
1208
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1209
+ Served asset /application.css - 200 OK (0ms)
1210
+
1211
+
1212
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1213
+ Served asset /application.js - 200 OK (0ms)
1214
+
1215
+
1216
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1217
+ Served asset /pdf.css - 200 OK (0ms)
1218
+
1219
+
1220
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1221
+ Served asset /jquery.js - 200 OK (0ms)
1222
+
1223
+
1224
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:58 -0600 2012
1225
+ Served asset /pdf.js - 200 OK (0ms)
1226
+
1227
+
1228
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1229
+ Processing by PdfController#render_pdf as HTML
1230
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1231
+ Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms)
1232
+
1233
+
1234
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1235
+ Served asset /pdf.js - 200 OK (0ms)
1236
+
1237
+
1238
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1239
+ Served asset /application.css - 200 OK (0ms)
1240
+
1241
+
1242
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1243
+ Served asset /pdf.css - 200 OK (0ms)
1244
+
1245
+
1246
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1247
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1248
+
1249
+
1250
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1251
+ Served asset /jquery.js - 200 OK (0ms)
1252
+
1253
+
1254
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1255
+ Served asset /application.js - 200 OK (0ms)
1256
+
1257
+
1258
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1259
+ Processing by PdfController#render_pdf as HTML
1260
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1261
+ Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)
1262
+
1263
+
1264
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1265
+ Processing by PdfController#render_pdf as HTML
1266
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1267
+ Completed 200 OK in 15ms (Views: 14.9ms | ActiveRecord: 0.0ms)
1268
+
1269
+
1270
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1271
+ Processing by PdfController#render_pdf as HTML
1272
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms)
1273
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
1274
+
1275
+
1276
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1277
+ Served asset /application.css - 200 OK (0ms)
1278
+
1279
+
1280
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1281
+ Served asset /jquery.js - 200 OK (0ms)
1282
+
1283
+
1284
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1285
+ Served asset /pdf.css - 200 OK (0ms)
1286
+
1287
+
1288
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:44:59 -0600 2012
1289
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1290
+
1291
+
1292
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1293
+ Served asset /pdf.js - 200 OK (0ms)
1294
+
1295
+
1296
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1297
+ Served asset /application.js - 200 OK (0ms)
1298
+
1299
+
1300
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1301
+ Processing by PdfController#render_pdf as HTML
1302
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.0ms)
1303
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
1304
+
1305
+
1306
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1307
+ Processing by PdfController#render_pdf as HTML
1308
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1309
+ Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.0ms)
1310
+
1311
+
1312
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1313
+ Processing by PdfController#render_pdf as HTML
1314
+ Rendered pdf/render_pdf.html.erb within layouts/application (0.1ms)
1315
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
1316
+
1317
+
1318
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1319
+ Served asset /application.css - 200 OK (0ms)
1320
+
1321
+
1322
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1323
+ Served asset /jquery.js - 200 OK (0ms)
1324
+
1325
+
1326
+ Started GET "/assets/pdf.css?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1327
+ Served asset /pdf.css - 200 OK (0ms)
1328
+
1329
+
1330
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1331
+ Served asset /application.js - 200 OK (0ms)
1332
+
1333
+
1334
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1335
+ Served asset /jquery_ujs.js - 200 OK (0ms)
1336
+
1337
+
1338
+ Started GET "/assets/pdf.js?body=1" for 127.0.0.1 at Mon Feb 20 17:45:00 -0600 2012
1339
+ Served asset /pdf.js - 200 OK (0ms)
1340
+
1341
+
1342
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:19 -0600 2012
1343
+ Processing by PdfController#render_pdf as HTML
1344
+ Rendered pdf/render_pdf.pdf.prawn (0.9ms)
1345
+ Completed 500 Internal Server Error in 11ms
1346
+
1347
+ ActionView::Template::Error (protected method `locals_code' called for app/views/pdf/render_pdf.pdf.prawn:ActionView::Template):
1348
+ app/controllers/pdf_controller.rb:4:in `render_pdf'
1349
+
1350
+ 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)
1351
+ 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)
1352
+ 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)
1353
+
1354
+
1355
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:45:38 -0600 2012
1356
+ Processing by PdfController#render_pdf as HTML
1357
+ Rendered pdf/render_pdf.pdf.prawn (114.9ms)
1358
+ Completed 200 OK in 135ms (Views: 134.5ms | ActiveRecord: 0.0ms)
1359
+
1360
+
1361
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:46:58 -0600 2012
1362
+ Processing by PdfController#render_pdf as HTML
1363
+ Rendered pdf/render_pdf.pdf.prawn (55.5ms)
1364
+ Completed 200 OK in 65ms (Views: 64.3ms | ActiveRecord: 0.0ms)
1365
+
1366
+
1367
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:55:08 -0600 2012
1368
+ Processing by PdfController#render_pdf as HTML
1369
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172356280 RAISED compile error
1370
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:8: syntax error, unexpected tIDENTIFIER, expecting '}'
1371
+ move_down 10 font_size 16 text "Yeah, something bigger!"
1372
+ ^
1373
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:9: syntax error, unexpected tIDENTIFIER, expecting '}'
1374
+ move_down 10 font_size(25) { text "Even bigger!" }
1375
+ ^
1376
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:10: syntax error, unexpected tIDENTIFIER, expecting '}'
1377
+ move_down 10 text "Back to 16 again."
1378
+ ^
1379
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:11: syntax error, unexpected tIDENTIFIER, expecting '}'
1380
+ move_down 10 text "Single line on 20 using the ...
1381
+ ^
1382
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:12: syntax error, unexpected tIDENTIFIER, expecting '}'
1383
+ move_down 10 text "Back to 16 once more."
1384
+ ^
1385
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:13: syntax error, unexpected tIDENTIFIER, expecting '}'
1386
+ move_down 10 font("Courier", :size => 10) do
1387
+ ^
1388
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:17: syntax error, unexpected tIDENTIFIER, expecting '}'
1389
+ text "Default color is black" move_down 25
1390
+ ^
1391
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:18: syntax error, unexpected tIDENTIFIER, expecting '}'
1392
+ text "Changed to red", :color => "FF0000" move_down 25
1393
+ ^
1394
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:19: syntax error, unexpected tIDENTIFIER, expecting '}'
1395
+ text "CMYK color", :color => [22, 55, 79, 30] move_down 25
1396
+ ^
1397
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172356280(local_assigns, output_buffer)
1398
+ _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"
1399
+ text "now it is here: #{cursor}"
1400
+ font("Courier") do
1401
+ text "Written in Courier because we are inside the block."
1402
+ end
1403
+
1404
+ text "Let's see which is the current font_size: #{font_size.inspect}"
1405
+ move_down 10 font_size 16 text "Yeah, something bigger!"
1406
+ move_down 10 font_size(25) { text "Even bigger!" }
1407
+ move_down 10 text "Back to 16 again."
1408
+ move_down 10 text "Single line on 20 using the :size option.", :size => 20
1409
+ move_down 10 text "Back to 16 once more."
1410
+ move_down 10 font("Courier", :size => 10) do
1411
+ text "Yeah, using Courier 10 courtesy of the font method." end
1412
+ font("Helvetica", :size => 12) # back to normal
1413
+
1414
+ text "Default color is black" move_down 25
1415
+ text "Changed to red", :color => "FF0000" move_down 25
1416
+ text "CMYK color", :color => [22, 55, 79, 30] move_down 25
1417
+ text "Also works with <color rgb='ff0000'>inline</color> formatting", :color => "0000FF", :inline_format => true};pdf.render
1418
+ ensure
1419
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
1420
+ end
1421
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:23:in `compile'
1422
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
1423
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
1424
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
1425
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
1426
+ /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'
1427
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
1428
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1429
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
1430
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1431
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
1432
+ /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'
1433
+ /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'
1434
+ /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'
1435
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
1436
+ /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'
1437
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
1438
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
1439
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
1440
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
1441
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
1442
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
1443
+ /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'
1444
+ /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'
1445
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
1446
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
1447
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
1448
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
1449
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
1450
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
1451
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
1452
+ /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'
1453
+ /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'
1454
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
1455
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:4:in `render_pdf'
1456
+ /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'
1457
+ /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'
1458
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
1459
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
1460
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
1461
+ /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'
1462
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
1463
+ /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'
1464
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
1465
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
1466
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
1467
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
1468
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
1469
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1470
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
1471
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1472
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
1473
+ /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'
1474
+ /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'
1475
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
1476
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
1477
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
1478
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
1479
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
1480
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
1481
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
1482
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
1483
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
1484
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
1485
+ /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'
1486
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
1487
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
1488
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
1489
+ /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'
1490
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
1491
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
1492
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
1493
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
1494
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
1495
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
1496
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
1497
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
1498
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
1499
+ /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'
1500
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
1501
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
1502
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
1503
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
1504
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
1505
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
1506
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
1507
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
1508
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
1509
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
1510
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
1511
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
1512
+ /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'
1513
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
1514
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
1515
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
1516
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
1517
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
1518
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
1519
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
1520
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
1521
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
1522
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
1523
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
1524
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
1525
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
1526
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
1527
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
1528
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
1529
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
1530
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
1531
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
1532
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
1533
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
1534
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
1535
+ script/rails:6:in `require'
1536
+ script/rails:6
1537
+ Rendered pdf/render_pdf.pdf.prawn (0.7ms)
1538
+ Completed 500 Internal Server Error in 11ms
1539
+
1540
+ ActionView::Template::Error (compile error
1541
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:8: syntax error, unexpected tIDENTIFIER, expecting '}'
1542
+ move_down 10 font_size 16 text "Yeah, something bigger!"
1543
+ ^
1544
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:9: syntax error, unexpected tIDENTIFIER, expecting '}'
1545
+ move_down 10 font_size(25) { text "Even bigger!" }
1546
+ ^
1547
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:10: syntax error, unexpected tIDENTIFIER, expecting '}'
1548
+ move_down 10 text "Back to 16 again."
1549
+ ^
1550
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:11: syntax error, unexpected tIDENTIFIER, expecting '}'
1551
+ move_down 10 text "Single line on 20 using the ...
1552
+ ^
1553
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:12: syntax error, unexpected tIDENTIFIER, expecting '}'
1554
+ move_down 10 text "Back to 16 once more."
1555
+ ^
1556
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:13: syntax error, unexpected tIDENTIFIER, expecting '}'
1557
+ move_down 10 font("Courier", :size => 10) do
1558
+ ^
1559
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:17: syntax error, unexpected tIDENTIFIER, expecting '}'
1560
+ text "Default color is black" move_down 25
1561
+ ^
1562
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:18: syntax error, unexpected tIDENTIFIER, expecting '}'
1563
+ text "Changed to red", :color => "FF0000" move_down 25
1564
+ ^
1565
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:19: syntax error, unexpected tIDENTIFIER, expecting '}'
1566
+ text "CMYK color", :color => [22, 55, 79, 30] move_down 25
1567
+ ^):
1568
+ 5: end
1569
+ 6:
1570
+ 7: text "Let's see which is the current font_size: #{font_size.inspect}"
1571
+ 8: move_down 10 font_size 16 text "Yeah, something bigger!"
1572
+ 9: move_down 10 font_size(25) { text "Even bigger!" }
1573
+ 10: move_down 10 text "Back to 16 again."
1574
+ 11: move_down 10 text "Single line on 20 using the :size option.", :size => 20
1575
+ app/views/pdf/render_pdf.pdf.prawn:23:in `compile'
1576
+ app/controllers/pdf_controller.rb:4:in `render_pdf'
1577
+
1578
+ 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)
1579
+ 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)
1580
+ 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)
1581
+
1582
+
1583
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:55:22 -0600 2012
1584
+ Processing by PdfController#render_pdf as HTML
1585
+ Rendered pdf/render_pdf.pdf.prawn (56.2ms)
1586
+ Completed 200 OK in 140ms (Views: 139.3ms | ActiveRecord: 0.0ms)
1587
+
1588
+
1589
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:55:59 -0600 2012
1590
+ Processing by PdfController#render_pdf as HTML
1591
+ Rendered pdf/render_pdf.pdf.prawn (70.0ms)
1592
+ Completed 200 OK in 80ms (Views: 79.5ms | ActiveRecord: 0.0ms)
1593
+
1594
+
1595
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Mon Feb 20 17:56:14 -0600 2012
1596
+ Processing by PdfController#render_pdf as HTML
1597
+ Rendered pdf/render_pdf.pdf.prawn (70.7ms)
1598
+ Completed 200 OK in 80ms (Views: 79.7ms | ActiveRecord: 0.0ms)
1599
+  (0.1ms) select sqlite_version(*)
1600
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1601
+  (0.1ms) PRAGMA index_list("schema_migrations")
1602
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1603
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1604
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1605
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1606
+ Migrating to CreateProducts (20120221152352)
1607
+  (0.0ms) select sqlite_version(*)
1608
+  (0.6ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" decimal, "created_at" datetime, "updated_at" datetime) 
1609
+  (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120221152352')
1610
+  (0.1ms) select sqlite_version(*)
1611
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1612
+  (0.0ms) PRAGMA index_list("products")
1613
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1614
+  (0.1ms) select sqlite_version(*)
1615
+  (55.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" decimal, "created_at" datetime, "updated_at" datetime) 
1616
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1617
+  (0.1ms) PRAGMA index_list("schema_migrations")
1618
+  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1619
+  (0.1ms) SELECT version FROM "schema_migrations"
1620
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120221152352')
1621
+
1622
+
1623
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:24:34 -0600 2012
1624
+ Processing by PdfController#render_pdf as HTML
1625
+ Rendered pdf/render_pdf.pdf.prawn (139.4ms)
1626
+ Completed 200 OK in 160ms (Views: 160.0ms | ActiveRecord: 0.0ms)
1627
+
1628
+
1629
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:27:07 -0600 2012
1630
+ Processing by PdfController#render_pdf as HTML
1631
+ Rendered pdf/render_pdf.pdf.prawn (1.6ms)
1632
+ Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.0ms)
1633
+
1634
+
1635
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:34:17 -0600 2012
1636
+ Processing by PdfController#render_pdf as HTML
1637
+ Rendered pdf/render_pdf.pdf.prawn (139.1ms)
1638
+ Completed 200 OK in 158ms (Views: 157.9ms | ActiveRecord: 0.0ms)
1639
+
1640
+
1641
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:35:34 -0600 2012
1642
+ Processing by PdfController#render_pdf as HTML
1643
+ Rendered pdf/render_pdf.pdf.prawn (0.8ms)
1644
+ Completed 500 Internal Server Error in 20ms
1645
+
1646
+ ActionView::Template::Error (undefined local variable or method `items' for PrawnRails::PrawnHandler:Class):
1647
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
1648
+
1649
+ 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)
1650
+ 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)
1651
+ 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)
1652
+
1653
+
1654
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:36:21 -0600 2012
1655
+ Processing by PdfController#render_pdf as HTML
1656
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172692420 RAISED compile error
1657
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE
1658
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4: syntax error, unexpected kEND, expecting '}'
1659
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172692420(local_assigns, output_buffer)
1660
+ _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;pdf=Prawn::Document.new{#{items.inspect}};pdf.render
1661
+ ensure
1662
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
1663
+ end
1664
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4:in `compile'
1665
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
1666
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
1667
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
1668
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
1669
+ /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'
1670
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
1671
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1672
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
1673
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1674
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
1675
+ /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'
1676
+ /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'
1677
+ /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'
1678
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
1679
+ /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'
1680
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
1681
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
1682
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
1683
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
1684
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
1685
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
1686
+ /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'
1687
+ /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'
1688
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
1689
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
1690
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
1691
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
1692
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
1693
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
1694
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
1695
+ /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'
1696
+ /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'
1697
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
1698
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf'
1699
+ /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'
1700
+ /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'
1701
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
1702
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
1703
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
1704
+ /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'
1705
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
1706
+ /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'
1707
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
1708
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
1709
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
1710
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
1711
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
1712
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1713
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
1714
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1715
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
1716
+ /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'
1717
+ /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'
1718
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
1719
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
1720
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
1721
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
1722
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
1723
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
1724
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
1725
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
1726
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
1727
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
1728
+ /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'
1729
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
1730
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
1731
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
1732
+ /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'
1733
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
1734
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
1735
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
1736
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
1737
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
1738
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
1739
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
1740
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
1741
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
1742
+ /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'
1743
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
1744
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
1745
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
1746
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
1747
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
1748
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
1749
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
1750
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
1751
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
1752
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
1753
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
1754
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
1755
+ /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'
1756
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
1757
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
1758
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
1759
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
1760
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
1761
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
1762
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
1763
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
1764
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
1765
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
1766
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
1767
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
1768
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
1769
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
1770
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
1771
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
1772
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
1773
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
1774
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
1775
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
1776
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
1777
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
1778
+ script/rails:6:in `require'
1779
+ script/rails:6
1780
+ Rendered pdf/render_pdf.pdf.prawn (0.6ms)
1781
+ Completed 500 Internal Server Error in 19ms
1782
+
1783
+ ActionView::Template::Error (compile error
1784
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected kENSURE
1785
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:4: syntax error, unexpected kEND, expecting '}'):
1786
+ 1: text "Hello There :D"
1787
+ 2: text "now it is here: #{cursor}"
1788
+ 3: text "ITEMS ARE #{@items.inspect}"
1789
+ 4: font("Courier") do
1790
+ 5: text "Written in Courier because we are inside the block."
1791
+ app/views/pdf/render_pdf.pdf.prawn:4:in `compile'
1792
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
1793
+
1794
+ 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)
1795
+ 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)
1796
+ 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)
1797
+
1798
+
1799
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:37:49 -0600 2012
1800
+ Processing by PdfController#render_pdf as HTML
1801
+ Rendered pdf/render_pdf.pdf.prawn (1.6ms)
1802
+ Completed 500 Internal Server Error in 21ms
1803
+
1804
+ ActionView::Template::Error (undefined local variable or method `template' for #<Prawn::Document:0x102fe2240>):
1805
+ 1: text "Hello There :D"
1806
+ 2: text "now it is here: #{cursor}"
1807
+ 3: text "ITEMS ARE #{@items.inspect}"
1808
+ 4: font("Courier") do
1809
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240'
1810
+ app/views/pdf/render_pdf.pdf.prawn:1:in `new'
1811
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240'
1812
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
1813
+
1814
+ 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)
1815
+ 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)
1816
+ 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)
1817
+
1818
+
1819
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:38:01 -0600 2012
1820
+ Processing by PdfController#render_pdf as HTML
1821
+ Rendered pdf/render_pdf.pdf.prawn (1.6ms)
1822
+ Completed 500 Internal Server Error in 11ms
1823
+
1824
+ ActionView::Template::Error (undefined local variable or method `template' for #<Prawn::Document:0x1035f9278>):
1825
+ 1: text "Hello There :D"
1826
+ 2: text "now it is here: #{cursor}"
1827
+ 3: text "ITEMS ARE #{@items.inspect}"
1828
+ 4: font("Courier") do
1829
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240'
1830
+ app/views/pdf/render_pdf.pdf.prawn:1:in `new'
1831
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172691240'
1832
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
1833
+
1834
+ 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)
1835
+ 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)
1836
+ 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)
1837
+
1838
+
1839
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:38:17 -0600 2012
1840
+ Processing by PdfController#render_pdf as HTML
1841
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690680 RAISED compile error
1842
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected tIDENTIFIER, expecting ')'
1843
+ text "now it is here: #{cursor}"
1844
+ ^
1845
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:34: syntax error, unexpected ')', expecting '}'
1846
+ )};pdf.render
1847
+ ^
1848
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:35: syntax error, unexpected kENSURE, expecting '}'
1849
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: syntax error, unexpected kEND, expecting '}'
1850
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690680(local_assigns, output_buffer)
1851
+ _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"
1852
+ text "now it is here: #{cursor}"
1853
+ text "ITEMS ARE #{@items.inspect}"
1854
+ font("Courier") do
1855
+ text "Written in Courier because we are inside the block."
1856
+ end
1857
+
1858
+ text "Let's see which is the current font_size: #{font_size.inspect}"
1859
+ move_down 10
1860
+ font_size 16
1861
+ text "Yeah, something bigger!"
1862
+ move_down 10
1863
+ font_size(25) { text "Even bigger!" }
1864
+ move_down 10
1865
+ text "Back to 16 again."
1866
+ move_down 10
1867
+ text "Single line on 20 using the :size option.", :size => 20
1868
+ move_down 10
1869
+ text "Back to 16 once more."
1870
+ move_down 10
1871
+ font("Courier", :size => 10) do
1872
+ text "Yeah, using Courier 10 courtesy of the font method."
1873
+ end
1874
+ font("Helvetica", :size => 12) # back to normal
1875
+
1876
+ text "Default color is black"
1877
+ move_down 25
1878
+ text "Changed to red", :color => "FF0000"
1879
+ move_down 25
1880
+ text "CMYK color", :color => [22, 55, 79, 30]
1881
+ move_down 25
1882
+ text "Also works with <color rgb='ff0000'>inline</color> formatting", :color => "0000FF", :inline_format => true
1883
+
1884
+ )};pdf.render
1885
+ ensure
1886
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
1887
+ end
1888
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37:in `compile'
1889
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
1890
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
1891
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
1892
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
1893
+ /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'
1894
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
1895
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1896
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
1897
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1898
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
1899
+ /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'
1900
+ /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'
1901
+ /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'
1902
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
1903
+ /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'
1904
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
1905
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
1906
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
1907
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
1908
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
1909
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
1910
+ /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'
1911
+ /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'
1912
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
1913
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
1914
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
1915
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
1916
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
1917
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
1918
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
1919
+ /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'
1920
+ /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'
1921
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
1922
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf'
1923
+ /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'
1924
+ /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'
1925
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
1926
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
1927
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
1928
+ /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'
1929
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
1930
+ /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'
1931
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
1932
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
1933
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
1934
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
1935
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
1936
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1937
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
1938
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
1939
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
1940
+ /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'
1941
+ /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'
1942
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
1943
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
1944
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
1945
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
1946
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
1947
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
1948
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
1949
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
1950
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
1951
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
1952
+ /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'
1953
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
1954
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
1955
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
1956
+ /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'
1957
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
1958
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
1959
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
1960
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
1961
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
1962
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
1963
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
1964
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
1965
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
1966
+ /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'
1967
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
1968
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
1969
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
1970
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
1971
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
1972
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
1973
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
1974
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
1975
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
1976
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
1977
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
1978
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
1979
+ /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'
1980
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
1981
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
1982
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
1983
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
1984
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
1985
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
1986
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
1987
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
1988
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
1989
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
1990
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
1991
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
1992
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
1993
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
1994
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
1995
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
1996
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
1997
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
1998
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
1999
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
2000
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
2001
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
2002
+ script/rails:6:in `require'
2003
+ script/rails:6
2004
+ Rendered pdf/render_pdf.pdf.prawn (0.7ms)
2005
+ Completed 500 Internal Server Error in 20ms
2006
+
2007
+ ActionView::Template::Error (compile error
2008
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:2: syntax error, unexpected tIDENTIFIER, expecting ')'
2009
+ text "now it is here: #{cursor}"
2010
+ ^
2011
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:34: syntax error, unexpected ')', expecting '}'
2012
+ )};pdf.render
2013
+ ^
2014
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:35: syntax error, unexpected kENSURE, expecting '}'
2015
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:37: syntax error, unexpected kEND, expecting '}'):
2016
+ 1: text "Hello There :D"
2017
+ 2: text "now it is here: #{cursor}"
2018
+ 3: text "ITEMS ARE #{@items.inspect}"
2019
+ 4: font("Courier") do
2020
+ 5: text "Written in Courier because we are inside the block."
2021
+ app/views/pdf/render_pdf.pdf.prawn:37:in `compile'
2022
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2023
+
2024
+ 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)
2025
+ 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)
2026
+ 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)
2027
+
2028
+
2029
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:39:36 -0600 2012
2030
+ Processing by PdfController#render_pdf as HTML
2031
+ Rendered pdf/render_pdf.pdf.prawn (46.1ms)
2032
+ Completed 200 OK in 65ms (Views: 64.7ms | ActiveRecord: 0.0ms)
2033
+
2034
+
2035
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:40:01 -0600 2012
2036
+ Processing by PdfController#render_pdf as HTML
2037
+ Rendered pdf/render_pdf.pdf.prawn (0.8ms)
2038
+ Completed 500 Internal Server Error in 20ms
2039
+
2040
+ ActionView::Template::Error (undefined local variable or method `items' for PrawnRails::PrawnHandler:Class):
2041
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2042
+
2043
+ 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)
2044
+ 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)
2045
+ 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)
2046
+
2047
+
2048
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:40:57 -0600 2012
2049
+ Processing by PdfController#render_pdf as HTML
2050
+ Rendered pdf/render_pdf.pdf.prawn (141.3ms)
2051
+ Completed 500 Internal Server Error in 190ms
2052
+
2053
+ ActionView::Template::Error (undefined local variable or method `pdf' for #<#<Class:0x103056c58>:0x103052ba8>):
2054
+ 1: text "Hello There :D"
2055
+ 2: text "now it is here: #{cursor}"
2056
+ 3: text "ITEMS ARE #{@items.inspect}"
2057
+ 4: font("Courier") do
2058
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690580'
2059
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2060
+
2061
+ 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)
2062
+ 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)
2063
+ 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)
2064
+
2065
+
2066
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 10:54:19 -0600 2012
2067
+ Processing by PdfController#render_pdf as HTML
2068
+ ERROR: compiling _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690320 RAISED compile error
2069
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string
2070
+ ...t_buffer = @output_buffer;;%PDF-1.3
2071
+ ^
2072
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND
2073
+ ...t_buffer = @output_buffer;;%PDF-1.3
2074
+ ^
2075
+ Function body: def _app_views_pdf_render_pdf_pdf_prawn___1941494209_2172690320(local_assigns, output_buffer)
2076
+ _old_virtual_path, @virtual_path = @virtual_path, "pdf/render_pdf.pdf";_old_output_buffer = @output_buffer;;%PDF-1.3
2077
+ %����
2078
+ 1 0 obj
2079
+ << /Creator <feff0050007200610077006e>
2080
+ /Producer <feff0050007200610077006e>
2081
+ >>
2082
+ endobj
2083
+ 2 0 obj
2084
+ << /Pages 3 0 R
2085
+ /Type /Catalog
2086
+ >>
2087
+ endobj
2088
+ 3 0 obj
2089
+ << /Kids [5 0 R]
2090
+ /Type /Pages
2091
+ /Count 1
2092
+ >>
2093
+ endobj
2094
+ 4 0 obj
2095
+ << /Length 56
2096
+ >>
2097
+ stream
2098
+ q
2099
+
2100
+ BT
2101
+ 36 747.384 Td
2102
+ /F1.0 12 Tf
2103
+ [<68656c6c6f>] TJ
2104
+ ET
2105
+
2106
+ Q
2107
+
2108
+ endstream
2109
+ endobj
2110
+ 5 0 obj
2111
+ << /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
2112
+ /Font << /F1.0 6 0 R
2113
+ >>
2114
+ >>
2115
+ /Contents 4 0 R
2116
+ /Type /Page
2117
+ /MediaBox [0 0 612.0 792.0]
2118
+ /Parent 3 0 R
2119
+ >>
2120
+ endobj
2121
+ 6 0 obj
2122
+ << /Encoding /WinAnsiEncoding
2123
+ /Subtype /Type1
2124
+ /BaseFont /Helvetica
2125
+ /Type /Font
2126
+ >>
2127
+ endobj
2128
+ xref
2129
+ 0 7
2130
+ 0000000000 65535 f
2131
+ 0000000015 00000 n
2132
+ 0000000109 00000 n
2133
+ 0000000158 00000 n
2134
+ 0000000215 00000 n
2135
+ 0000000321 00000 n
2136
+ 0000000499 00000 n
2137
+ trailer
2138
+ << /Root 2 0 R
2139
+ /Info 1 0 R
2140
+ /Size 7
2141
+ >>
2142
+ startxref
2143
+ 596
2144
+ %%EOF
2145
+
2146
+ ensure
2147
+ @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
2148
+ end
2149
+ Backtrace: /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1:in `compile'
2150
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!'
2151
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `render'
2152
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
2153
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
2154
+ /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'
2155
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
2156
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
2157
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2158
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
2159
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
2160
+ /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'
2161
+ /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'
2162
+ /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'
2163
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `render'
2164
+ /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'
2165
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
2166
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
2167
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
2168
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
2169
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
2170
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
2171
+ /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'
2172
+ /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'
2173
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
2174
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
2175
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
2176
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
2177
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/benchmark.rb:308:in `realtime'
2178
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
2179
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `render'
2180
+ /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'
2181
+ /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'
2182
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
2183
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/controllers/pdf_controller.rb:5:in `render_pdf'
2184
+ /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'
2185
+ /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'
2186
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
2187
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
2188
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `process_action'
2189
+ /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'
2190
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `send'
2191
+ /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'
2192
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
2193
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2194
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
2195
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
2196
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2197
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
2198
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2199
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
2200
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2201
+ /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'
2202
+ /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'
2203
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
2204
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
2205
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
2206
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
2207
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `action'
2208
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
2209
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
2210
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
2211
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `call'
2212
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `recognize'
2213
+ /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'
2214
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
2215
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
2216
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
2217
+ /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'
2218
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/etag.rb:23:in `call'
2219
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/conditionalget.rb:25:in `call'
2220
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
2221
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2222
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
2223
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:195:in `context'
2224
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/session/abstract/id.rb:190:in `call'
2225
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
2226
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
2227
+ /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'
2228
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `call'
2229
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
2230
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `send'
2231
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2232
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
2233
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
2234
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/sendfile.rb:101:in `call'
2235
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
2236
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
2237
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
2238
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:in `call'
2239
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/runtime.rb:17:in `call'
2240
+ /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'
2241
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/lock.rb:15:in `call'
2242
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
2243
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
2244
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/content_length.rb:14:in `call'
2245
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
2246
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
2247
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2248
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2249
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2250
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start'
2251
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2252
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:95:in `start'
2253
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `each'
2254
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:92:in `start'
2255
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:23:in `start'
2256
+ /Users/cortiz/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/webrick/server.rb:82:in `start'
2257
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
2258
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
2259
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
2260
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:54
2261
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
2262
+ /Users/cortiz/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.1.3/lib/rails/commands.rb:49
2263
+ script/rails:6:in `require'
2264
+ script/rails:6
2265
+ Rendered pdf/render_pdf.pdf.prawn (48.5ms)
2266
+ Completed 500 Internal Server Error in 69ms
2267
+
2268
+ ActionView::Template::Error (compile error
2269
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: unknown type of %string
2270
+ ...t_buffer = @output_buffer;;%PDF-1.3
2271
+ ^
2272
+ /Users/cortiz/proyectos/prawn-rails/test/dummy/app/views/pdf/render_pdf.pdf.prawn:1: syntax error, unexpected $end, expecting kEND
2273
+ ...t_buffer = @output_buffer;;%PDF-1.3
2274
+ ^):
2275
+ 1: text "Hello There :D"
2276
+ 2: text "now it is here: #{cursor}"
2277
+ 3: text "ITEMS ARE #{@items.inspect}"
2278
+ 4: font("Courier") do
2279
+ app/views/pdf/render_pdf.pdf.prawn:1:in `compile'
2280
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2281
+
2282
+ 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)
2283
+ 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)
2284
+ 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)
2285
+
2286
+
2287
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:39:27 -0600 2012
2288
+ Processing by PdfController#render_pdf as HTML
2289
+ Rendered pdf/render_pdf.pdf.prawn (135.3ms)
2290
+ Completed 200 OK in 154ms (Views: 153.9ms | ActiveRecord: 0.0ms)
2291
+
2292
+
2293
+ Started GET "/pdf/rendering" for 127.0.0.1 at Tue Feb 21 11:48:16 -0600 2012
2294
+
2295
+ ActionController::RoutingError (No route matches [GET] "/pdf/rendering"):
2296
+
2297
+
2298
+ 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)
2299
+
2300
+
2301
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:48:21 -0600 2012
2302
+ Processing by PdfController#render_pdf as HTML
2303
+ Rendered pdf/render_pdf.pdf.prawn (138.5ms)
2304
+ Completed 200 OK in 153ms (Views: 152.5ms | ActiveRecord: 0.0ms)
2305
+
2306
+
2307
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:49:31 -0600 2012
2308
+ Processing by PdfController#render_pdf as HTML
2309
+ Rendered pdf/render_pdf.pdf.prawn (1.4ms)
2310
+ Completed 500 Internal Server Error in 11ms
2311
+
2312
+ ActionView::Template::Error (undefined method `text' for nil:NilClass):
2313
+ 1: pdf.text "Hello There :D"
2314
+ 2: pdf.text "now it is here: #{cursor}"
2315
+ 3: pdf.text "ITems are #{@items.inspect}"
2316
+ 4: pdf.font("Courier") do
2317
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780'
2318
+ app/views/pdf/render_pdf.pdf.prawn:1:in `new'
2319
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780'
2320
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2321
+
2322
+ 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)
2323
+ 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)
2324
+ 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)
2325
+
2326
+
2327
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:49:32 -0600 2012
2328
+ Processing by PdfController#render_pdf as HTML
2329
+ Rendered pdf/render_pdf.pdf.prawn (1.1ms)
2330
+ Completed 500 Internal Server Error in 11ms
2331
+
2332
+ ActionView::Template::Error (undefined method `text' for nil:NilClass):
2333
+ 1: pdf.text "Hello There :D"
2334
+ 2: pdf.text "now it is here: #{cursor}"
2335
+ 3: pdf.text "ITems are #{@items.inspect}"
2336
+ 4: pdf.font("Courier") do
2337
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780'
2338
+ app/views/pdf/render_pdf.pdf.prawn:1:in `new'
2339
+ app/views/pdf/render_pdf.pdf.prawn:1:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2174134780'
2340
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2341
+
2342
+ 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)
2343
+ 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)
2344
+ 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)
2345
+
2346
+
2347
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:50:54 -0600 2012
2348
+ Processing by PdfController#render_pdf as HTML
2349
+ Rendered pdf/render_pdf.pdf.prawn (143.0ms)
2350
+ Completed 500 Internal Server Error in 191ms
2351
+
2352
+ ActionView::Template::Error (undefined local variable or method `cursor' for #<#<Class:0x103053c88>:0x10304fbd8>):
2353
+ 1: pdf.text "Hello There :D"
2354
+ 2: pdf.text "now it is here: #{cursor}"
2355
+ 3: pdf.text "ITems are #{@items.inspect}"
2356
+ 4: pdf.font("Courier") do
2357
+ 5: pdf.text "Written in Courier because we are inside the block."
2358
+ app/views/pdf/render_pdf.pdf.prawn:2:in `_app_views_pdf_render_pdf_pdf_prawn___1941494209_2172680560'
2359
+ app/controllers/pdf_controller.rb:5:in `render_pdf'
2360
+
2361
+ 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)
2362
+ 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)
2363
+ 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)
2364
+
2365
+
2366
+ Started GET "/pdf/render_pdf" for 127.0.0.1 at Tue Feb 21 11:51:07 -0600 2012
2367
+ Processing by PdfController#render_pdf as HTML
2368
+ Rendered pdf/render_pdf.pdf.prawn (68.9ms)
2369
+ Completed 200 OK in 78ms (Views: 77.4ms | ActiveRecord: 0.0ms)