summaryrefslogtreecommitdiff
path: root/help/config
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-07-03 11:11:10 -0700
committerelijah <elijah@riseup.net>2013-07-04 04:12:59 -0700
commit0cd386e0144601f5478f90bbdb401d55c019c828 (patch)
treee5a1eb9bf6e8031d9367c869f46ba717f2906c9c /help/config
parent179a6457d4e56052664a6895bb9ab5b721b57352 (diff)
better ticket view navigation: tickets are now either global in scope (for admins) or stay as a nested resource for a particular user (for normal users and when you visit the tickets list of a particular user).
Diffstat (limited to 'help/config')
-rw-r--r--help/config/routes.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/help/config/routes.rb b/help/config/routes.rb
index 86a9201..8f3241c 100644
--- a/help/config/routes.rb
+++ b/help/config/routes.rb
@@ -1,5 +1,6 @@
Rails.application.routes.draw do
-
- resources :tickets, :only => [:new, :create, :index, :show, :update, :destroy]
- #resources :ticket, :only => [:show]
+ resources :tickets, :except => :edit
+ resources :users do
+ resources :tickets, :except => :edit
+ end
end