4 Instructions for installation:
8 # add the slice as a regular dependency
10 dependency 'merb_mart'
12 # if needed, configure which slices to load and in which order
14 Merb::Plugins.config[:merb_slices] = { :queue => ["MerbMart", ...] }
16 # optionally configure the plugins in a before_app_loads callback
18 Merb::BootLoader.before_app_loads do
20 Merb::Slices::config[:merb_E_mart] = { ... }
24 file: config/router.rb
26 # example: /merb_mart/:controller/:action/:id
28 r.add_slice(:MerbMart)
30 # example: /foo/:controller/:action/:id
32 r.add_slice(:MerbMart, 'foo') # same as :path => 'foo'
34 # example: /:lang/:controller/:action/:id (with :a param set)
36 r.add_slice(:MerbMart, :path => ':lang', :params => { :a => 'b' })
38 # example: /:controller/:action/:id
42 Normally you should also run the following rake task:
44 rake slices:merb_E_mart:install
46 ------------------------------------------------------------------------------
48 You can put your application-level overrides in:
50 host-app/slices/merb_mart/app - controllers, models, views ...
52 Templates are located in this order:
54 1. host-app/slices/merb_mart/app/views/*
55 2. gems/merb_mart/app/views/*
56 3. host-app/app/views/*
58 You can use the host application's layout by configuring the
59 merb_mart slice in a before_app_loads block:
61 Merb::Slices.config[:merb_E_mart] = { :layout => :application }
63 By default :merb_E_mart is used. If you need to override
64 stylesheets or javascripts, just specify your own files in your layout
65 instead/in addition to the ones supplied (if any) in
66 host-app/public/slices/merb_mart.
68 In any case don't edit those files directly as they may be clobbered any time
69 rake merb_E_mart:install is run.
74 MerbMart master branch is being built on the cutting-edge Merb framework, and
75 the bleeding edge DataMapper framework. As such, you'll have to get yourself
76 setup with those gems before you get the chance to play with MerbMart.
78 Dependencies for MerbMart:
80 * **DataMapper 0.9** - 'edge' development
82 * `git clone git://github.com/sam/do.git`
83 * `cd data_objects && rake gem && sudo gem install pkg/data_objects-0.9.0.gem`
84 * install the relevant driver for your database
86 * `git clone git://github.com/sam/dm-core.git`
88 * `git clone git://github.com/sam/dm-more.git`
96 (NOTE: do not use the *merb\_datamapper* included in the 0.9.2 distribution of
97 *merb_plugins*, as it was designed for DataMapper 0.3 series)
98 * **Merb 0.9.3** (or above)
99 * *merb-core* : `sudo gem install merb-core`
100 * *merb-more* : `sudo gem install merb-more`
102 * *merb\_helpers* : `sudo gem install merb_helpers`
104 (NOTE:> 0.9.3 required. Install from merb\_plugins source.
105 See merb-plugins issue
106 [106](http://merb.lighthouseapp.com/projects/7588/tickets/106-merb_stories-require-old-rspec-plugin) )
115 You can also run individual groups of specs. To see tasks available to you: