public
Description: DEVELOPMENT DISCONTINUED: Consider using Spree (repo: http://github.com/railsdog/spree) instead.
Homepage:
Clone URL: git://github.com/myabc/merb_mart.git
Click here to lend your support to: merb_mart and make a donation at www.pledgie.com !
myabc (author)
Mon Aug 17 13:33:34 -0700 2009
commit  2d0ccf708aad6e02dc077aeac5e53553d852fb0a
tree    204c84eb03c4e37417424b1f249d1c76aa608523
parent  4879d3ec5d8d2211ea43e329bcb48a72dbb86a01
merb_mart / INSTALL
100644 118 lines (78 sloc) 3.388 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Installation
============
 
Instructions for installation:
 
file: config/init.rb
 
# add the slice as a regular dependency
 
dependency 'merb_mart'
 
# if needed, configure which slices to load and in which order
 
Merb::Plugins.config[:merb_slices] = { :queue => ["MerbMart", ...] }
 
# optionally configure the plugins in a before_app_loads callback
 
Merb::BootLoader.before_app_loads do
  
  Merb::Slices::config[:merb_E_mart] = { ... }
  
end
 
file: config/router.rb
 
# example: /merb_mart/:controller/:action/:id
 
r.add_slice(:MerbMart)
 
# example: /foo/:controller/:action/:id
 
r.add_slice(:MerbMart, 'foo') # same as :path => 'foo'
 
# example: /:lang/:controller/:action/:id (with :a param set)
 
r.add_slice(:MerbMart, :path => ':lang', :params => { :a => 'b' })
 
# example: /:controller/:action/:id
 
r.slice(:MerbMart)
 
Normally you should also run the following rake task:
 
rake slices:merb_E_mart:install
 
------------------------------------------------------------------------------
 
You can put your application-level overrides in:
 
host-app/slices/merb_mart/app - controllers, models, views ...
 
Templates are located in this order:
 
1. host-app/slices/merb_mart/app/views/*
2. gems/merb_mart/app/views/*
3. host-app/app/views/*
 
You can use the host application's layout by configuring the
merb_mart slice in a before_app_loads block:
 
Merb::Slices.config[:merb_E_mart] = { :layout => :application }
 
By default :merb_E_mart is used. If you need to override
stylesheets or javascripts, just specify your own files in your layout
instead/in addition to the ones supplied (if any) in
host-app/public/slices/merb_mart.
 
In any case don't edit those files directly as they may be clobbered any time
rake merb_E_mart:install is run.
 
Dependencies
------------
 
MerbMart master branch is being built on the cutting-edge Merb framework, and
the bleeding edge DataMapper framework. As such, you'll have to get yourself
setup with those gems before you get the chance to play with MerbMart.
 
Dependencies for MerbMart:
 
 * **DataMapper 0.9** - 'edge' development
    * *DataObjects*
        * `git clone git://github.com/sam/do.git`
        * `cd data_objects && rake gem && sudo gem install pkg/data_objects-0.9.0.gem`
        * install the relevant driver for your database
    * *dm-core*
        * `git clone git://github.com/sam/dm-core.git`
    * *dm-more*
        * `git clone git://github.com/sam/dm-more.git`
        * *dm-aggregates*
        * *dm-is-tree*
        * *dm-migrations*
        * *dm-timestamps*
        * *dm-types*
        * *dm-validations*
        * *merb\_datamapper*
        (NOTE: do not use the *merb\_datamapper* included in the 0.9.2 distribution of
         *merb_plugins*, as it was designed for DataMapper 0.3 series)
 * **Merb 0.9.3** (or above)
    * *merb-core* : `sudo gem install merb-core`
    * *merb-more* : `sudo gem install merb-more`
    * *merb\_plugins*
        * *merb\_helpers* : `sudo gem install merb_helpers`
        * *merb\_stories*
        (NOTE:> 0.9.3 required. Install from merb\_plugins source.
        See merb-plugins issue
        [106](http://merb.lighthouseapp.com/projects/7588/tickets/106-merb_stories-require-old-rspec-plugin) )
    
Running Specs
-------------
 
To run all specs:
 
    rake spec
 
You can also run individual groups of specs. To see tasks available to you:
 
    rake -T