spree-contrib / spree_print_invoice

Create a PDF invoice for Spree orders.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
91 stars 239 forks source link

NoMethodError in Spree/admin/orders#show #8

Closed binaryphile closed 12 years ago

binaryphile commented 12 years ago

Full error trace is at:

https://gist.github.com/2949242

When running spree_print_invoice master (40debbcc57) on spree 1.1.2beta (4739b95a946), the print invoice button shows up on the order admin, but I only get this error when I try to print.

Ted

binaryphile commented 12 years ago

Apparently hooks are deprecated in 1.1 per the release notes:

http://guides.spreecommerce.com/release_notes_1_1_0.html#spree-hookhelper

Unfortunately, I don't know enough about what :extra_note was trying to do to replace it with Deface, but I was able to get rid of the error in my app by overriding that view locally with a copy of _bye.pdf.prawn that doesn't include the hook.

See my next issue for what happened then.