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.
Files changed (31) hide show
  1. checksums.yaml +8 -8
  2. data/README.rdoc +19 -1
  3. data/app/controllers/mechanize_store/products_controller.rb +1 -1
  4. data/app/views/mechanize_store/products/_form.html.erb +2 -1
  5. data/app/views/mechanize_store/products/show.html.erb +2 -2
  6. data/config/locales/mechanize_store.pt-BR.yml +1 -1
  7. data/db/migrate/20140402140832_create_mechanize_store_products.rb +1 -1
  8. data/lib/mechanize_store/version.rb +1 -1
  9. data/spec/dummy/db/development.sqlite3 +0 -0
  10. data/spec/dummy/db/migrate/{20140424193635_create_mechanize_store_freights.mechanize_store.rb → 20140508135827_create_mechanize_store_freights.mechanize_store.rb} +0 -0
  11. 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
  12. 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
  13. 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
  14. data/spec/dummy/db/migrate/{20140424193639_create_mechanize_store_payments.mechanize_store.rb → 20140508135831_create_mechanize_store_payments.mechanize_store.rb} +0 -0
  15. data/spec/dummy/db/migrate/{20140424193640_create_mechanize_store_flags.mechanize_store.rb → 20140508135832_create_mechanize_store_flags.mechanize_store.rb} +0 -0
  16. data/spec/dummy/db/migrate/{20140424193641_create_mechanize_store_products.mechanize_store.rb → 20140508135833_create_mechanize_store_products.mechanize_store.rb} +1 -1
  17. 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
  18. data/spec/dummy/db/migrate/{20140424193643_create_mechanize_store_orders.mechanize_store.rb → 20140508135835_create_mechanize_store_orders.mechanize_store.rb} +0 -0
  19. 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
  20. 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
  21. 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
  22. 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
  23. data/spec/dummy/db/migrate/{20140424193648_add_time_to_freight.mechanize_store.rb → 20140508135840_add_time_to_freight.mechanize_store.rb} +0 -0
  24. data/spec/dummy/db/schema.rb +2 -2
  25. data/spec/dummy/log/development.log +480 -0
  26. data/spec/dummy/log/test.log +1271 -0
  27. data/spec/dummy/public/photos/1/medium.png +0 -0
  28. data/spec/dummy/public/photos/1/thumb.png +0 -0
  29. data/spec/factories/mechanize_store_products.rb +2 -1
  30. metadata +30 -32
  31. 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
- ODczNDdiMmIwZGU3MTAyNGIwODNkZmE3MjI3NDgwMjQ1ZjEyOWQ5MA==
4
+ YjA4YWI3ODY4YzFjZjc3NTQ5OGE2NmEzNzg3YThkNjM0OWUwNjMxMg==
5
5
  data.tar.gz: !binary |-
6
- YjNlYzc5MDhlZDc5ZGRkYmY0OTY2MDRmMDFiMWVmM2E3MDhiOTA5Mw==
6
+ MDlmZTY1OWIxZTFiNGJkZjE4M2MyYjM1ODNkNDUzZDAzNmRiOTYxMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjgxODE4ZmE5M2FmZDdlM2IxMzZhZjRlMmQ0MjhmZGM1MDE0NWNiZGU5NTVj
10
- YWY0YjJkMzBjMGI1MzJlNzRiOWM4OWM4NjQyOThlMjg0MDIxODIxY2E4ZmE1
11
- YjczOTZmM2ZlNjQ5MDU5NjY2YWQ4MjI3NjEwOTBlNTFjYjAxNmU=
9
+ N2ZjMDBhMWJlNzc1ZTc5OTJmNDgxYTU5MWQzZDgxYzc1ZTkwYWY1ZmQxOThl
10
+ NjkyMWU1ZWZhMzE4ODA5MGRlYmQyMzM5N2ZmM2ZjNGJhOWRlYzA0MTU5MWMw
11
+ MTIyYTI1ODlhYjdkOWE2ZmMwMDhlZDc2ZTk0NDRmYTM5ZDdjZWM=
12
12
  data.tar.gz: !binary |-
13
- YmU3MzBhNWM4YzUxYzc5YWEzOGZjMzBmNTI2ZjAxZTg1NTM1NzVkMzRlODQy
14
- OWI3ZmM5NjM1NTQwNTBjMTk3YTk5NTFlMGEwN2QzYTlkNTM0ZTNkNzFmZjBi
15
- ZjZmZGM5YzhjZGVhYmU3NjY5OTJhYzA3YzBiYjJhOTVkMmRiMjE=
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
- - lenght
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, :lenght, :height, :product_category_id)
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
@@ -7,7 +7,8 @@
7
7
  <%= f.input :short_description %>
8
8
  <%= f.input :price %>
9
9
  <%= f.input :weight %>
10
- <%= f.input :lenght %>
10
+ <%= f.input :length %>
11
+ <%= f.input :width %>
11
12
  <%= f.input :height %>
12
13
  <%= f.association :product_category %>
13
14
  </div>
@@ -30,8 +30,8 @@
30
30
  <h3><%= @product.weight %></h3>
31
31
  </p>
32
32
  <p>
33
- <small><%= t(:lenght, scope: "activerecord.attributes.mechanize_store.product") %>:</small>
34
- <h3><%= @product.lenght %></h3>
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>
@@ -44,7 +44,7 @@ pt-BR:
44
44
  mechanize_store/product:
45
45
  description: Descrição
46
46
  height: Altura
47
- lenght: Comprimento
47
+ length: Comprimento
48
48
  name: Nome
49
49
  price: Preço
50
50
  short_description: Resumo
@@ -6,7 +6,7 @@ class CreateMechanizeStoreProducts < ActiveRecord::Migration
6
6
  t.string :short_description
7
7
  t.float :price
8
8
  t.float :weight
9
- t.float :lenght
9
+ t.float :length
10
10
  t.float :height
11
11
  t.references :product_category, index: true
12
12
 
@@ -1,3 +1,3 @@
1
1
  module MechanizeStore
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
Binary file
@@ -7,7 +7,7 @@ class CreateMechanizeStoreProducts < ActiveRecord::Migration
7
7
  t.string :short_description
8
8
  t.float :price
9
9
  t.float :weight
10
- t.float :lenght
10
+ t.float :length
11
11
  t.float :height
12
12
  t.references :product_category, index: true
13
13
 
@@ -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: 20140424193648) do
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 "lenght"
117
+ t.float "length"
118
118
  t.float "height"
119
119
  t.integer "product_category_id"
120
120
  t.datetime "created_at"