Skip to content

Commit

Permalink
minor formatting change for routes file
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuity committed Feb 22, 2010
1 parent 4cb9256 commit 8424370
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
map.devise_for :users

map.subdomain nil do |main|
main.root :controller => "home"
main.root :controller => "home"
main.resources :users do |users|
users.resources :subdomains, :except => [:edit, :show]
end
users.resources :subdomains, :except => [:edit, :show]
end
end

map.subdomain :admin do |admin|
admin.root :controller => "AdminHome"
admin.resources :admins
end
map.subdomain :admin do |admin|
admin.root :controller => "AdminHome"
admin.resources :admins
end

map.subdomain :model => :site do |site|
site.root :controller => "sites", :action => "show"
site.resources :sites, :only => [:index, :show]
end
map.subdomain :model => :site do |site|
site.root :controller => "sites", :action => "show"
site.resources :sites, :only => [:index, :show]
end

map.root :controller => 'home'
map.root :controller => 'home'
# The priority is based upon order of creation: first created -> highest priority.

# Sample of regular route:
Expand Down

0 comments on commit 8424370

Please sign in to comment.