Sha256: e9cfe4d12a761819b2a19c5a397f2141c30d21c8defb8e7db065360682abc725

Contents?: true

Size: 1.47 KB

Versions: 4

Compression:

Stored size: 1.47 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

* PaymentType (ex: :credit, :debit, :billet)
    - name

* PaymentStatus (ex: :paid, :awayting, :canceled)
    - name

* OrderStatus (ex: :accomplished, :delivered, :canceled)
    - 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_id

* Order
    - order_status_id
    - 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

4 entries across 4 versions & 1 rubygems

Version Path
mechanize_store-0.0.8 README.rdoc
mechanize_store-0.0.7 README.rdoc
mechanize_store-0.0.6 README.rdoc
mechanize_store-0.0.5 README.rdoc