piggybak_variants 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -0
- data/lib/piggybak_variants/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -3,6 +3,22 @@ PiggybakVariants Gem (Engine)
|
|
3
3
|
|
4
4
|
Advanced variant support for Piggybak.
|
5
5
|
|
6
|
+
Install
|
7
|
+
========
|
8
|
+
|
9
|
+
In your Gemfile add `gem "piggybak_variants"`
|
10
|
+
|
11
|
+
Run `bundle install`
|
12
|
+
|
13
|
+
Run `rake piggybak_variants:install:migrations`
|
14
|
+
Migrate the DB `rake db:migrate`
|
15
|
+
|
16
|
+
Add `acts_as_sellable_with_variants` to any model that should have variants. You may need to add appropriate attr_accessible settings in your model as well, depending on your attribute accessibility settings.
|
17
|
+
|
18
|
+
In the admin, define option configurations and option values for each option, then create variants for your sellable instances.
|
19
|
+
|
20
|
+
Finally, add `<%= variant_cart_form(@instance) %>` to your sellable item's show page to render the cart form.
|
21
|
+
|
6
22
|
|
7
23
|
TODO
|
8
24
|
========
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piggybak_variants
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
segments:
|
105
105
|
- 0
|
106
|
-
hash:
|
106
|
+
hash: 2470368963455998095
|
107
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
segments:
|
114
114
|
- 0
|
115
|
-
hash:
|
115
|
+
hash: 2470368963455998095
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
118
|
rubygems_version: 1.8.23
|