1 CutenServer::Application.routes.draw do
2 resources :apks, :only => :show
4 resources :tasks, :only => [:index, :show]
6 resources :lectures, :only => [:index, :show] do
12 resources :teachers, :only => [:index, :show]
14 # The priority is based upon order of creation:
15 # first created -> highest priority.
17 # Sample of regular route:
18 # match 'products/:id' => 'catalog#view'
19 # Keep in mind you can assign values other than :controller and :action
21 # Sample of named route:
22 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
23 # This route can be invoked with purchase_url(:id => product.id)
25 # Sample resource route (maps HTTP verbs to controller actions automatically):
28 # Sample resource route with options:
29 # resources :products do
40 # Sample resource route with sub-resources:
41 # resources :products do
42 # resources :comments, :sales
46 # Sample resource route with more complex sub-resources
47 # resources :products do
50 # get 'recent', :on => :collection
54 # Sample resource route within a namespace:
56 # # Directs /admin/products/* to Admin::ProductsController
57 # # (app/controllers/admin/products_controller.rb)
61 # You can have the root of your site routed with "root"
62 # just remember to delete public/index.html.
63 # root :to => 'welcome#index'
65 # See how all your routes lay out with "rake routes"
67 # This is a legacy wild controller route that's not recommended for RESTful applications.
68 # Note: This route will make all actions in every controller accessible via GET requests.
69 # match ':controller(/:action(/:id))(.:format)'