Skip to content

Instantly share code, notes, and snippets.

@binaryphile
Created June 18, 2012 16:27
Show Gist options
  • Save binaryphile/2949242 to your computer and use it in GitHub Desktop.
Save binaryphile/2949242 to your computer and use it in GitHub Desktop.
spree_print_invoice NoMethodError in Spree/admin/orders#show
NoMethodError in Spree/admin/orders#show
Showing /home/tlilley/.rvm/gems/ruby-1.9.3-p194@spree_dibs_1.1/bundler/gems/spree_print_invoice-40debbcc57f7/app/views/spree/admin/orders/_bye.pdf.prawn where line #8 raised:
undefined method `hook' for #<#<Class:0x00000007a18e50>:0x007f7fe5056718>
Extracted source (around line #8):
5:
6: move_down 20
7:
8: hook :extra_note do
9: end
Trace of template inclusion: /home/tlilley/.rvm/gems/ruby-1.9.3-p194@spree_dibs_1.1/bundler/gems/spree_print_invoice-40debbcc57f7/app/views/spree/admin/orders/_line_items_box.pdf.prawn, /home/tlilley/.rvm/gems/ruby-1.9.3-p194@spree_dibs_1.1/bundler/gems/spree_print_invoice-40debbcc57f7/app/views/spree/admin/orders/_print.pdf.prawn, /home/tlilley/.rvm/gems/ruby-1.9.3-p194@spree_dibs_1.1/bundler/gems/spree_print_invoice-40debbcc57f7/app/views/spree/admin/orders/invoice.pdf.prawn
Rails.root: /home/tlilley/projects/spree_dibs_1.1
Application Trace | Framework Trace | Full Trace
Request
Parameters:
{"template"=>"invoice",
"id"=>"R620580058",
"format"=>"pdf"}
Show session dump
Show env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment