madpilot / active_cart Goto Github PK
View Code? Open in Web Editor NEWA shopping cart framework
Home Page: http://gemcutter.org/gems/active_cart
A shopping cart framework
Home Page: http://gemcutter.org/gems/active_cart
The def_delegators that are set in acts_as_cart breaks belongs_to in the Cart model when used with Rails 3 and Ruby 1.9.2-rc2.
account = Account.first
cart = account.carts.create!
cart.account
TypeError: can't convert String into Integer
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:218:in `[]'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:218:in `method_missing'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_collection.rb:432:in `method_missing'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/belongs_to_association.rb:58:in `find_target'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:237:in `load_target'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations/association_proxy.rb:118:in `reload'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/activerecord-3.0.0.rc/lib/active_record/associations.rb:1364:in `block in association_accessor_methods'
from (irb):2
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/railties-3.0.0.rc/lib/rails/commands/console.rb:44:in `start'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/railties-3.0.0.rc/lib/rails/commands/console.rb:8:in `start'
from /Users/jfturcot/.rvm/gems/ruby-1.9.2-rc2@cloud-pos/gems/railties-3.0.0.rc/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
The tests past, but in real life, they aren't firing
I messed up the aasm setup. I need to re-think this as at the moment, creating new events don't propagate through to the parent cart, and there is no way to override existing transitions.
Cart.last.cart_items
SystemStackError: stack level too deep
from /home/olkeene/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/forwardable.rb:204
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.