Skip to content

Instantly share code, notes, and snippets.

@kylefox kylefox/gist:238935
Created Nov 19, 2009

What would you like to do?
# Using Jamis Buck's routing tricks (
ActionController::Routing::Routes.draw do |map|
# These routes only get loaded on
map.namespace :admin, :path_prefix => '', :conditions => {:domain => ""} do |admin|
admin.connect "/", :controller => "user"
admin.resources :exams
# These routes will get loaded for all custom domains
map.namespace :measure, :path_prefix => '' do |measure|
measure.connect "/", :controller => "user"
measure.resources :exams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.