OSDN Git Service

speach balloon permission change to admin
[pettanr/pettanr.git] / config / routes.rb
1 Pettanr::Application.routes.draw do
2
3   devise_for :admins
4   devise_for :authors
5
6   match 'original_pictures/:id(.:format)/refresh' => 'original_pictures#refresh'
7
8   resources :artists, except: [:new, :edit]
9   resources :speaches, only: [:index]
10   resources :balloons, only: [:index]
11   resources :speach_templates, only: [:index]
12   resources :balloon_templates, only: [:index]
13   resources :speach_balloons, except: [:new, :edit]
14   resources :panel_pictures, only: [:index]
15   resources :resource_pictures, only: [:index, :show]
16   resources :original_pictures, except: [:new]
17   resources :panels, except: [:new, :edit]
18   resources :comics, except: [:new, :edit]
19   resources :lisences, only: [:index]
20   resources :original_lisences
21   resources :common_lisences
22   resources :system_pictures, except: [:new, :edit]
23
24   # The priority is based upon order of creation:
25   # first created -> highest priority.
26
27   # Sample of regular route:
28   #   match 'products/:id' => 'catalog#view'
29   # Keep in mind you can assign values other than :controller and :action
30   match 'comics/:id(.:format)/play' => 'comics#play'
31   match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
32   match 'home/(:action)', :controller => 'home'
33   match 'help/(:action)', :controller => 'help'
34   match 'system/(:action)', :controller => 'system'
35 #  controller 'system' do
36 #    get 'start'
37 #    get 'index'
38 ##    match 'start', :to => 'system#start'
39 #  end
40   
41   # Sample of named route:
42   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
43   # This route can be invoked with purchase_url(:id => product.id)
44
45   # Sample resource route (maps HTTP verbs to controller actions automatically):
46   #   resources :products
47
48   # Sample resource route with options:
49   #   resources :products do
50   #     member do
51   #       get 'short'
52   #       post 'toggle'
53   #     end
54   #
55   #     collection do
56   #       get 'sold'
57   #     end
58   #   end
59
60   # Sample resource route with sub-resources:
61   #   resources :products do
62   #     resources :comments, :sales
63   #     resource :seller
64   #   end
65
66   # Sample resource route with more complex sub-resources
67   #   resources :products do
68   #     resources :comments
69   #     resources :sales do
70   #       get 'recent', :on => :collection
71   #     end
72   #   end
73
74   # Sample resource route within a namespace:
75   #   namespace :admin do
76   #     # Directs /admin/products/* to Admin::ProductsController
77   #     # (app/controllers/admin/products_controller.rb)
78   #     resources :products
79   #   end
80
81   # You can have the root of your site routed with "root"
82   # just remember to delete public/index.html.
83   root :to => 'comics#top'
84
85   # See how all your routes lay out with "rake routes"
86
87   # This is a legacy wild controller route that's not recommended for RESTful applications.
88   # Note: This route will make all actions in every controller accessible via GET requests.
89 #  match ':controller(/:action(/:id(.:format)))'
90 end