mechanize_store 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +19 -1
- data/app/controllers/mechanize_store/products_controller.rb +1 -1
- data/app/views/mechanize_store/products/_form.html.erb +2 -1
- data/app/views/mechanize_store/products/show.html.erb +2 -2
- data/config/locales/mechanize_store.pt-BR.yml +1 -1
- data/db/migrate/20140402140832_create_mechanize_store_products.rb +1 -1
- data/lib/mechanize_store/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{20140424193635_create_mechanize_store_freights.mechanize_store.rb → 20140508135827_create_mechanize_store_freights.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193636_create_mechanize_store_order_statuses.mechanize_store.rb → 20140508135828_create_mechanize_store_order_statuses.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193637_create_mechanize_store_payment_statuses.mechanize_store.rb → 20140508135829_create_mechanize_store_payment_statuses.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193638_create_mechanize_store_payment_types.mechanize_store.rb → 20140508135830_create_mechanize_store_payment_types.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193639_create_mechanize_store_payments.mechanize_store.rb → 20140508135831_create_mechanize_store_payments.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193640_create_mechanize_store_flags.mechanize_store.rb → 20140508135832_create_mechanize_store_flags.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193641_create_mechanize_store_products.mechanize_store.rb → 20140508135833_create_mechanize_store_products.mechanize_store.rb} +1 -1
- data/spec/dummy/db/migrate/{20140424193642_create_mechanize_store_product_photos.mechanize_store.rb → 20140508135834_create_mechanize_store_product_photos.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193643_create_mechanize_store_orders.mechanize_store.rb → 20140508135835_create_mechanize_store_orders.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193644_create_mechanize_store_product_categories.mechanize_store.rb → 20140508135836_create_mechanize_store_product_categories.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193645_add_width_to_mechanize_store_product.mechanize_store.rb → 20140508135837_add_width_to_mechanize_store_product.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193646_create_mechanize_store_order_items.mechanize_store.rb → 20140508135838_create_mechanize_store_order_items.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193647_add_payment_type_id_to_payment.mechanize_store.rb → 20140508135839_add_payment_type_id_to_payment.mechanize_store.rb} +0 -0
- data/spec/dummy/db/migrate/{20140424193648_add_time_to_freight.mechanize_store.rb → 20140508135840_add_time_to_freight.mechanize_store.rb} +0 -0
- data/spec/dummy/db/schema.rb +2 -2
- data/spec/dummy/log/development.log +480 -0
- data/spec/dummy/log/test.log +1271 -0
- data/spec/dummy/public/photos/1/medium.png +0 -0
- data/spec/dummy/public/photos/1/thumb.png +0 -0
- data/spec/factories/mechanize_store_products.rb +2 -1
- metadata +30 -32
- data/spec/dummy/db/test.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjA4YWI3ODY4YzFjZjc3NTQ5OGE2NmEzNzg3YThkNjM0OWUwNjMxMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDlmZTY1OWIxZTFiNGJkZjE4M2MyYjM1ODNkNDUzZDAzNmRiOTYxMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2ZjMDBhMWJlNzc1ZTc5OTJmNDgxYTU5MWQzZDgxYzc1ZTkwYWY1ZmQxOThl
|
10
|
+
NjkyMWU1ZWZhMzE4ODA5MGRlYmQyMzM5N2ZmM2ZjNGJhOWRlYzA0MTU5MWMw
|
11
|
+
MTIyYTI1ODlhYjdkOWE2ZmMwMDhlZDc2ZTk0NDRmYTM5ZDdjZWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTgyYzJkZGZiNDdmNWY2ZDc2OTI2MTc5NmVlMWYwOTViYmRkZTE5YWRlMzFk
|
14
|
+
M2RkMTZiZjhmYzVhZWU4YTJjYWRlOWRhMGE2ZDg2OGY4OWMzNzBiYWYzYjYw
|
15
|
+
NTU0NDkwODcwZjQ5YWNjZjhjYWM3MGE5M2QxZDdkMmQ5MzRlMTA=
|
data/README.rdoc
CHANGED
@@ -2,6 +2,24 @@
|
|
2
2
|
|
3
3
|
This project rocks and uses MIT-LICENSE.
|
4
4
|
|
5
|
+
= Using custom layouts in default interface
|
6
|
+
|
7
|
+
If you want customize laura layout, add this line above to your application.rb in you config.
|
8
|
+
|
9
|
+
config.to_prepare do
|
10
|
+
MechanizeStore::ApplicationController.layout "yourlayoutname"
|
11
|
+
end
|
12
|
+
|
13
|
+
Your layout must have paths with this notation, or it will not works. Ex:
|
14
|
+
|
15
|
+
main_app.root_path
|
16
|
+
|
17
|
+
Creates a yield for menu actions called :right. Ex:
|
18
|
+
|
19
|
+
<ul>
|
20
|
+
<%= yield(:right) %>
|
21
|
+
</ul>
|
22
|
+
|
5
23
|
These project was created to encapsulate a commom models of an MechanizeStore application, these model are:
|
6
24
|
|
7
25
|
* Flag (For credit cards flag)
|
@@ -26,7 +44,7 @@ These project was created to encapsulate a commom models of an MechanizeStore ap
|
|
26
44
|
- short_description
|
27
45
|
- weight
|
28
46
|
- height
|
29
|
-
-
|
47
|
+
- length
|
30
48
|
- product_category_id
|
31
49
|
|
32
50
|
* ProductPhoto
|
@@ -71,7 +71,7 @@ module MechanizeStore
|
|
71
71
|
|
72
72
|
# Only allow a trusted parameter "white list" through.
|
73
73
|
def product_params
|
74
|
-
params.require(:product).permit(:name, :description, :short_description, :price, :weight, :
|
74
|
+
params.require(:product).permit(:name, :description, :short_description, :price, :weight, :length, :height, :product_category_id)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
@@ -30,8 +30,8 @@
|
|
30
30
|
<h3><%= @product.weight %></h3>
|
31
31
|
</p>
|
32
32
|
<p>
|
33
|
-
<small><%= t(:
|
34
|
-
<h3><%= @product.
|
33
|
+
<small><%= t(:length, scope: "activerecord.attributes.mechanize_store.product") %>:</small>
|
34
|
+
<h3><%= @product.length %></h3>
|
35
35
|
</p>
|
36
36
|
<p>
|
37
37
|
<small><%= t(:height, scope: "activerecord.attributes.mechanize_store.product") %>:</small>
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20140508135840) do
|
15
15
|
|
16
16
|
create_table "mechanize_store_flags", force: true do |t|
|
17
17
|
t.string "name"
|
@@ -114,7 +114,7 @@ ActiveRecord::Schema.define(version: 20140424193648) do
|
|
114
114
|
t.string "short_description"
|
115
115
|
t.float "price"
|
116
116
|
t.float "weight"
|
117
|
-
t.float "
|
117
|
+
t.float "length"
|
118
118
|
t.float "height"
|
119
119
|
t.integer "product_category_id"
|
120
120
|
t.datetime "created_at"
|