Can someone please point me in the right direction? Maybe I
implemented the solutions in the above links incorrectly?
This is the error I'm getting in production:
2012-06-21T09:59:08+00:00 app[web.1]: ActionView::Template::Error
(undefined method `current_order' for
Spree::Core::CurrentOrder:Module):
If I comment out the lines of code with current_order, everything
works in production.
I'm thinking it's the way things are loaded in production? But this is
the first time I'm trying to deploy so I don't quite understand the
differences between development and production.
Thanks in advance!
A L
unread,
Jun 22, 2012, 4:41:56 PM6/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
So I ended up creating a helper class in my application that requires and extends the Spree::Core::CurrentOrder module (or mixin the Spree::Core::CurrentOrder module? I'm not sure what's the right term for it).
And it seems to work, but I then get a session method or variable is undefined error.