acts_as_shopping_cart:简单的购物车实施

时间:2021-05-24 17:52:41
【文件属性】:
文件名称:acts_as_shopping_cart:简单的购物车实施
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-24 17:52:41
Ruby acts_as_shopping_cart 一个简单的购物车实现。 您可以找到示例应用程序。 安装 滑轨3 从0.2.0版开始,不再支持Rails 3。 如果您仍需要在Rails 3应用程序中实现此gem,请使用0-1-x分支 将其包含在您的Gemfile中 gem 'acts_as_shopping_cart', :github => 'dabit/acts_as_shopping_cart', :branch => '0-1-x' 并运行捆绑器 bundle install 滑轨4 只需将其包含在您的Gemfile中即可: gem 'acts_as_shopping_cart', '~> 0.4.0' 并运行捆绑安装 bundle install 用法 您需要两种模型,一种模型用于容纳Shopping Carts ,另一种模型用于容纳Items 您可以为模型使用任何
【文件预览】:
acts_as_shopping_cart-master
----.travis.yml(180B)
----acts_as_shopping_cart.gemspec(1KB)
----features()
--------shopping_cart.feature(3KB)
--------support()
--------step_definitions()
----Gemfile.5.1(162B)
----Gemfile.4.2(162B)
----Rakefile(262B)
----.rubocop.yml(196B)
----LICENSE(1KB)
----README.markdown(4KB)
----Gemfile(106B)
----Gemfile.5.0(162B)
----Gemfile.4.0(162B)
----Gemfile.6(162B)
----Gemfile.4.1(162B)
----.rspec(30B)
----.document(60B)
----spec()
--------active_record()
--------.rspec(8B)
--------spec_helper.rb(491B)
----.gitignore(68B)
----CHANGELOG.md(316B)
----lib()
--------acts_as_shopping_cart()
--------acts_as_shopping_cart.rb(695B)
--------active_record()
----script()
--------build.sh(261B)

网友评论