Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created September 20, 2010 20:55
Show Gist options
  • Save tpitale/588635 to your computer and use it in GitHub Desktop.
Save tpitale/588635 to your computer and use it in GitHub Desktop.
Tasty::Application.routes.draw do
resources :items
constraints(SubDomain) do
namespace :store, :path => '/' do
resources :items
end
end
end
# items GET /items(.:format) {:action=>"index", :controller=>"items"}
# store_items GET /items(.:format) {:action=>"index", :controller=>"store/items"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment