OSDN Git Service

try autotest
[pettanr/pettanr.git] / config / routes.rb
1 Pettanr::Application.routes.draw do
2
3   devise_for :users , :controllers => { :registrations => "user_registrations" }
4   devise_for :admins
5
6   match 'original_pictures/:id(.:format)/refresh' => 'original_pictures#refresh'
7
8   resources :authors do
9     collection do
10       get :index
11       get :show
12       get :count
13       post :create
14       get :list
15       get :browse
16     end
17     member do
18       put :update
19       delete :destroy
20     end
21   end
22   resources :artists do
23     collection do
24       get :index
25       get :show
26       get :count
27       post :create
28       get :list
29       get :browse
30     end
31     member do
32       put :update
33       delete :destroy
34     end
35   end
36   resources :speaches do
37     collection do
38       get :index
39       get :show
40       get :list
41       get :browse
42     end
43     member do
44     end
45   end
46   resources :balloons do
47     collection do
48       get :index
49       get :show
50       get :list
51       get :browse
52     end
53     member do
54     end
55   end
56   resources :speach_templates do
57     collection do
58       get :index
59       get :show
60       get :list
61       get :browse
62     end
63     member do
64     end
65   end
66   resources :balloon_templates do
67     collection do
68       get :index
69       get :show
70       get :list
71       get :browse
72     end
73     member do
74     end
75   end
76   resources :speach_balloons do
77     collection do
78       get :index
79       get :show
80       post :create
81       get :list
82       get :browse
83     end
84     member do
85       put :update
86       delete :destroy
87     end
88   end
89   resources :panel_pictures do
90     collection do
91       get :index
92       get :show
93       get :list
94       get :browse
95     end
96     member do
97     end
98   end
99   resources :resource_pictures do
100     collection do
101       get :index
102       get :show
103       get :count
104       get :list
105       get :browse
106     end
107     member do
108     end
109   end
110   resources :original_pictures do
111     collection do
112       get :index
113       get :show
114       get :new
115       post :create
116       get :list
117       get :browse
118     end
119     member do
120       get :edit
121       put :update
122       delete :destroy
123     end
124   end
125   resources :panels do
126     collection do
127       get :index
128       get :show
129       get :count
130       post :create
131       get :list
132       get :browse
133     end
134     member do
135       put :update
136       delete :destroy
137     end
138   end
139   resources :comics do #, except: [:new, :edit]
140     collection do
141       get :index
142       get :show
143       get :count
144       post :create
145       get :list
146       get :browse
147     end
148     member do
149       put :update
150       delete :destroy
151     end
152   end
153   resources :licenses do
154     collection do
155       get :index
156       get :show
157       get :list
158       get :browse
159     end
160   end
161   resources :original_licenses do
162     collection do
163       get :index
164       get :show
165       get :new
166       post :create
167       get :list
168       get :browse
169     end
170     member do
171       get :edit
172       put :update
173       delete :destroy
174     end
175   end
176   resources :common_licenses do
177     collection do
178       get :index
179       get :show
180       post :create
181       get :list
182       get :browse
183     end
184     member do
185       put :update
186       delete :destroy
187     end
188   end
189   resources :system_pictures do
190     collection do
191       get :index
192       get :show
193       post :create
194       get :list
195       get :browse
196     end
197     member do
198       put :update
199       delete :destroy
200     end
201   end
202
203   # The priority is based upon order of creation:
204   # first created -> highest priority.
205
206   # Sample of regular route:
207   #   match 'products/:id' => 'catalog#view'
208   # Keep in mind you can assign values other than :controller and :action
209   match 'comics/:id(.:format)/play' => 'comics#play'
210   match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
211   match 'home/(:action)', :controller => 'home'
212   match 'help/(:action)', :controller => 'help'
213   match 'system/(:action)', :controller => 'system'
214   match 'authors/(:action(/:id))', :controller => 'authors'
215 #  controller 'system' do
216 #    get 'start'
217 #    get 'index'
218 ##    match 'start', :to => 'system#start'
219 #  end
220   
221   # Sample of named route:
222   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
223   # This route can be invoked with purchase_url(:id => product.id)
224
225   # Sample resource route (maps HTTP verbs to controller actions automatically):
226   #   resources :products
227
228   # Sample resource route with options:
229   #   resources :products do
230   #     member do
231   #       get 'short'
232   #       post 'toggle'
233   #     end
234   #
235   #     collection do
236   #       get 'sold'
237   #     end
238   #   end
239
240   # Sample resource route with sub-resources:
241   #   resources :products do
242   #     resources :comments, :sales
243   #     resource :seller
244   #   end
245
246   # Sample resource route with more complex sub-resources
247   #   resources :products do
248   #     resources :comments
249   #     resources :sales do
250   #       get 'recent', :on => :collection
251   #     end
252   #   end
253
254   # Sample resource route within a namespace:
255   #   namespace :admin do
256   #     # Directs /admin/products/* to Admin::ProductsController
257   #     # (app/controllers/admin/products_controller.rb)
258   #     resources :products
259   #   end
260
261   # You can have the root of your site routed with "root"
262   # just remember to delete public/index.html.
263   root :to => 'comics#top'
264
265   # See how all your routes lay out with "rake routes"
266
267   # This is a legacy wild controller route that's not recommended for RESTful applications.
268   # Note: This route will make all actions in every controller accessible via GET requests.
269   #match ':controller(/:action(/:id(.:format)))'
270 end