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-03 11:11:10 -0700
commit9f7e6ed3d44fb460cd0852a1f2335ef381f5dc1b (patch)
treec248ce9aa7b0cd9f81180e69573691502a4c19ed /help/config
parent743da86885379c240cb6946b57b9df72cc508c8e (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