This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Feb 28 00:33:37 -0800 2009 | |
| |
README.textile | Tue Mar 24 08:53:48 -0700 2009 | |
| |
Rakefile | Sat Feb 28 00:33:37 -0800 2009 | |
| |
app/ | Tue Mar 24 08:53:48 -0700 2009 | |
| |
autotest/ | Sat Feb 28 00:33:37 -0800 2009 | |
| |
config/ | Tue Mar 24 08:53:48 -0700 2009 | |
| |
doc/ | Sat Feb 28 00:33:37 -0800 2009 | |
| |
merb/ | Sat Feb 28 00:33:37 -0800 2009 | |
| |
public/ | Tue Mar 24 08:53:48 -0700 2009 | |
| |
sites/ | Tue Mar 24 08:53:48 -0700 2009 | |
| |
spec/ | Tue Mar 24 08:53:48 -0700 2009 | |
| |
tasks/ | Sat Feb 28 00:33:37 -0800 2009 |
README.textile
Merb MultiSite
Simple Merb MultiSite demo app. Each site has your own views located in /sites/[current_site]/.
Instructions for setup domains
Add your domains and subdomains in your /etc/hosts:
127.0.0.1 merbmultisite.com
127.0.0.1 www.merbmultisite.com
127.0.0.1 www.merbmultisite.net # Invalid site
127.0.0.1 www.merb.com
Create your site and add a few pages:
Site.create(:name => ‘Merb Multisite’, :domain => ‘merbmultisite.com’, :path => ‘merb_multisite’)
Site views and assets
Views are located in /sites/[path]/
Assets are located in /public/sites/[path]/
Image helper:
<%= image_tag asset_url(‘logo.jpg’) %>
TODOS
Get all specs working.
Test with merb-auth-slice-multisite.







