Skip to content

Instantly share code, notes, and snippets.

@almaron
Last active August 29, 2015 14:06
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 almaron/f04cd29729edbc2c3007 to your computer and use it in GitHub Desktop.
Save almaron/f04cd29729edbc2c3007 to your computer and use it in GitHub Desktop.
= javascript_tag('admin') if ???
scope '/admin' do
resources :users, except: [:new, :create, :show]
resources :chars, controller: 'admin_chars', except: [:new, :create], as: :admin_chars do
put :accept
put :approve
put :decline
end
resources :forums, controller: 'admin_forums' do
collection do
put '' => 'admin_forums#save_tree'
end
end
resources :configs, except: [:show, :new, :edit]
resources :roles
resources :skills, except: [:show, :edit, :new]
resources :skill_requests, only: [:index, :update, :destroy]
resources :ips, only: :index
resources :pages, controller: :admin_pages, except: [:new] do
put '' => 'admin_pages#save_tree', on: :collection
end
resources :journals, controller: :admin_journals, except: [:new, :edit], as: :admin_journals do
resources :pages, controller: :admin_journal_pages, except: [:index, :new, :edit] do
delete ':image_id' => :destroy_image
post :reset
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment