Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 84 lines (69 sloc) 2.589 kb
b9fc01d Mischa Berger first commit
mischa78 authored
1 Boxroom::Application.routes.draw do
2 match '/signin', :to => 'sessions#new'
3 match '/signout', :to => 'sessions#destroy'
4 match '/folders/:id/new', :to => 'folders#new'
5
6 # Resources
7 resources :admins, :only => [:new, :create]
8 resources :sessions, :only => [:new, :create, :destroy]
9 resources :reset_password, :except => [:index, :show, :destroy]
10 resources :users, :except => :show
11 resources :groups, :except => :show
12 resources :files, :except => [:index, :new, :create]
13
14 # Update a collection of permissions
15 resources :permissions, :only => :update_multiple do
16 collection do
17 put :update_multiple
18 end
19 end
20
21 # Nested resources
22 resources :folders, :shallow => true, :except => [:new, :create] do
23 resources :folders, :only => [:new, :create]
24 resources :files, :only => [:new, :create]
25 end
26
27 # The priority is based upon order of creation:
28 # first created -> highest priority.
29
30 # Sample of regular route:
31 # match 'products/:id' => 'catalog#view'
32 # Keep in mind you can assign values other than :controller and :action
33
34 # Sample of named route:
35 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
36 # This route can be invoked with purchase_url(:id => product.id)
37
38 # Sample resource route (maps HTTP verbs to controller actions automatically):
39 # resources :products
40
41 # Sample resource route with options:
42 # resources :products do
43 # member do
44 # get 'short'
45 # post 'toggle'
46 # end
47 #
48 # collection do
49 # get 'sold'
50 # end
51 # end
52
53 # Sample resource route with sub-resources:
54 # resources :products do
55 # resources :comments, :sales
56 # resource :seller
57 # end
58
59 # Sample resource route with more complex sub-resources
60 # resources :products do
61 # resources :comments
62 # resources :sales do
63 # get 'recent', :on => :collection
64 # end
65 # end
66
67 # Sample resource route within a namespace:
68 # namespace :admin do
69 # # Directs /admin/products/* to Admin::ProductsController
70 # # (app/controllers/admin/products_controller.rb)
71 # resources :products
72 # end
73
74 # You can have the root of your site routed with "root"
75 # just remember to delete public/index.html.
76 root :to => "folders#index"
77
78 # See how all your routes lay out with "rake routes"
79
80 # This is a legacy wild controller route that's not recommended for RESTful applications.
81 # Note: This route will make all actions in every controller accessible via GET requests.
82 # match ':controller(/:action(/:id(.:format)))'
83 end
Something went wrong with that request. Please try again.