-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `ad_hoc_option_values' #16
Comments
its set to production I ran the rake task with RAILS_ENV=production also. It seems like it might have something to do with a particular order or maybe the way the product is setup. I can get the error also in the dev environment now if choose an older item but the new item i setup doesn't cause the error. It seems to happen soon as click ship. Before I ship the order it seems to load the page fine. |
I think I've narrowed the problem down before you click ship Spree:LineItem is being passed into the _additional_line_item_fields.html.erb partial. But once you click ship it then tries to pass in Spree::ShippingManifest::ManifestItem but its looking for LineItem not ShippingManifest. I may try to hack it a bit it looks like the ShippingManifest has LineItem as a child. |
Adding these 3 lines to the top of _additional_line_item_fields.html.erb seems to have solved the problem. Not sure if this is a proper fix though. |
I'm having trouble with this gem. I have it working in my development environment but when I push it to the server I get this error whenever I try to view / edit an order.
The text was updated successfully, but these errors were encountered: