Skip to content

Instantly share code, notes, and snippets.

@joescharf
Created December 31, 2010 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joescharf/761363 to your computer and use it in GitHub Desktop.
Save joescharf/761363 to your computer and use it in GitHub Desktop.
Multiple Root Routes with Foreign Domain Detection
map.root :controller => "home", :action => "index", :conditions => {:protocol => /http:/}
map.root :controller => "dashboards", :action => "show", :conditions => {:protocol => /https:/, :foreign_domain => false}
map.root :controller => "payments", :action => "new", :conditions => { :foreign_domain => true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment