Skip to content

Instantly share code, notes, and snippets.

Jones-Lees-MacBook-Air:spree mojo$ rake
(in /Users/mojo/Sites/huey/spree)
########################### api #########################
rm api/Gemfile*
rm: api/Gemfile*: No such file or directory
cd api && /Users/mojo/.rvm/gems/ruby-1.9.2-p180/bin/rake test_app
(in /Users/mojo/Sites/huey/spree/api)
run rake spree_core:install from "./test_app"
(in /Users/mojo/Sites/huey/spree/api/spec/test_app)
run rake spree_auth:install from "./test_app"
within my #site_extension.rb
Spree::BaseController.class_eval do
before_filter :require_user
end
NoMethodError in CheckoutsController#update
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attributes!
RAILS_ROOT: /Users/mojo/Public/spree
Application Trace | Framework Trace | Full Trace
/Users/mojo/Public/spree/vendor/extensions/default_addresses/app/models/order_transaction_observer.rb:8:in `after_transition'