1 Pettanr::Application.routes.draw do
3 devise_for :users , :controllers => { :registrations => "user_registrations" }
6 Pettanr::Application.licenses.each do |name, klass|
7 mount Module.const_get(klass)::Engine => "/#{name}"
38 resources :speech_balloon_templates do
49 resources :speeches do
59 resources :balloons do
69 resources :speech_balloons do
79 resources :panel_pictures do
89 resources :pictures do
101 resources :resource_pictures do
116 resources :original_pictures do
134 resources :original_picture_license_groups do
152 resources :panel_colors do
161 resources :ground_colors do
170 resources :ground_pictures do
196 resources :stories do
230 resources :licenses do
240 resources :license_groups do
251 resources :system_pictures do
263 # The priority is based upon order of creation:
264 # first created -> highest priority.
266 # Sample of regular route:
267 # match 'products/:id' => 'catalog#view'
268 # Keep in mind you can assign values other than :controller and :action
269 match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
270 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
271 match 'stories/comic/:id(.:format)' => 'stories#comic'
272 match 'home/(:action)', :controller => 'home'
273 match 'system/(:action)', :controller => 'system'
274 match 'authors/(:action(/:id))', :controller => 'authors'
276 # Sample of named route:
277 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
278 # This route can be invoked with purchase_url(:id => product.id)
280 # Sample resource route (maps HTTP verbs to controller actions automatically):
281 # resources :products
283 # Sample resource route with options:
284 # resources :products do
295 # Sample resource route with sub-resources:
296 # resources :products do
297 # resources :comments, :sales
301 # Sample resource route with more complex sub-resources
302 # resources :products do
303 # resources :comments
304 # resources :sales do
305 # get 'recent', :on => :collection
309 # Sample resource route within a namespace:
310 # namespace :admin do
311 # # Directs /admin/products/* to Admin::ProductsController
312 # # (app/controllers/admin/products_controller.rb)
313 # resources :products
316 # You can have the root of your site routed with "root"
317 # just remember to delete public/index.html.
318 root :to => 'comics#top'
320 # See how all your routes lay out with "rake routes"
322 # This is a legacy wild controller route that's not recommended for RESTful applications.
323 # Note: This route will make all actions in every controller accessible via GET requests.
324 #match ':controller(/:action(/:id(.:format)))'