-
Notifications
You must be signed in to change notification settings - Fork 10
NoMethodError for current_order(true) #6
Comments
Hi @obates, thanks for reporting this. Not sure what it could be at the moment, and it's definitely not happening for our app. Are you able to reproduce this in a clean spree app? Also, could you post the stacktrace of the error and a copy fo your Gemfile? Can't really figure out where it is happening just from what you've sent me. Cheers |
Yeah sure:
And gemfile is:
Thanks for the help Oli |
I had this same problem. This is because spree 2-1-stable branch changed the Check these lines: https://github.com/spree/spree/blob/2-1-stable/core/lib/spree/core/controller_helpers/order.rb#L14-L15 Quick solution: just remove the It will be: |
Hi,
I'm getting a "NoMethodError in Spree::Products#index", undefined method `[]' for true:TrueClass"
for the line
"<% order = current_order(true) %>"
in the file
.bundler/ruby/2.0.0/spree-3233ae973a97/frontend/app/views/spree/products/index.html.erb file after installing this gem.
Any ideas?
Many thanks,
Oli
The text was updated successfully, but these errors were encountered: