Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Created November 8, 2015 14:02
Show Gist options
  • Save tbuehlmann/18a36503da615867cb39 to your computer and use it in GitHub Desktop.
Save tbuehlmann/18a36503da615867cb39 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
resources :categories
devise_for :admins
devise_for :users
resources :users
namespace :admin do
resources :categories
end
root "categories#index"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment