Sha256: 6626d7b20e3692958e489abdf39b36f8df2f28a2f22b2de351d77dce44e378c7

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 KB

Contents

= MechanizeStore

This project rocks and uses MIT-LICENSE.

= Using custom layouts in default interface

If you want customize laura layout, add this line above to your application.rb in you config.

    config.to_prepare do
        MechanizeStore::ApplicationController.layout "yourlayoutname"
    end

Your layout must have paths with this notation, or it will not works. Ex:

    main_app.root_path

Creates a yield for menu actions called :right. Ex:
    
    <ul>
        <%= yield(:right) %>
    </ul>

These project was created to encapsulate a commom models of an MechanizeStore application, these model are:

* Flag (For credit cards flag)
    - name

* ProductCategory
    - name

* Product
    - name
    - price
    - description
    - short_description
    - weight
    - height
    - length
    - product_category_id

* ProductPhoto
    - file (a paperclip attachment)
    - product_id

* Payment
    - payable (a polymorphic association)
    - value
    - paid_value
    - paid_in
    - flag_id
    - payment_status
    - payment_type

* Order
    - order_status
    - store
    - delivery_date

* Store
    - name
    - url 
    - key

Add mechanize_store as a gem in your product:
    
    gem 'mechanize-store'

Next execute this command in your terminal:

    rake mechanize_mechanize_store:install:migrations

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mechanize_store-0.0.19 README.rdoc
mechanize_store-0.0.18 README.rdoc
mechanize_store-0.0.17 README.rdoc
mechanize_store-0.0.16 README.rdoc
mechanize_store-0.0.15 README.rdoc
mechanize_store-0.0.14 README.rdoc
mechanize_store-0.0.13 README.rdoc
mechanize_store-0.0.12 README.rdoc
mechanize_store-0.0.11 README.rdoc
mechanize_store-0.0.10 README.rdoc