Skip to content

Instantly share code, notes, and snippets.

@knewter
Created June 3, 2011 02:30
Show Gist options
  • Save knewter/1005753 to your computer and use it in GitHub Desktop.
Save knewter/1005753 to your computer and use it in GitHub Desktop.
Refinery::Application.routes.draw do
scope(:module => 'refinery') do
resources :news, :as => :news_items, :controller => :news_items, :only => [:show, :index]
end
scope(:path => 'refinery', :as => 'refinery_admin', :module => 'refinery/admin') do
resources :news, :except => :show, :as => :news_items, :controller => :news_items
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment