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
57 resources :balloons do
65 resources :speech_balloons do
73 resources :panel_pictures do
83 resources :pictures do
95 resources :resource_pictures do
110 resources :original_pictures do
128 resources :original_picture_license_groups do
145 resources :panel_colors do
153 resources :ground_colors do
161 resources :ground_pictures do
186 resources :stories do
219 resources :licenses do
229 resources :license_groups do
240 resources :system_pictures do
252 # The priority is based upon order of creation:
253 # first created -> highest priority.
255 # Sample of regular route:
256 # match 'products/:id' => 'catalog#view'
257 # Keep in mind you can assign values other than :controller and :action
258 match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
259 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
260 match 'stories/comic/:id(.:format)' => 'stories#comic'
261 match 'home/(:action)', :controller => 'home'
262 match 'system/(:action)', :controller => 'system'
263 match 'authors/(:action(/:id))', :controller => 'authors'
265 # Sample of named route:
266 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
267 # This route can be invoked with purchase_url(:id => product.id)
269 # Sample resource route (maps HTTP verbs to controller actions automatically):
270 # resources :products
272 # Sample resource route with options:
273 # resources :products do
284 # Sample resource route with sub-resources:
285 # resources :products do
286 # resources :comments, :sales
290 # Sample resource route with more complex sub-resources
291 # resources :products do
292 # resources :comments
293 # resources :sales do
294 # get 'recent', :on => :collection
298 # Sample resource route within a namespace:
299 # namespace :admin do
300 # # Directs /admin/products/* to Admin::ProductsController
301 # # (app/controllers/admin/products_controller.rb)
302 # resources :products
305 # You can have the root of your site routed with "root"
306 # just remember to delete public/index.html.
307 root :to => 'comics#top'
309 # See how all your routes lay out with "rake routes"
311 # This is a legacy wild controller route that's not recommended for RESTful applications.
312 # Note: This route will make all actions in every controller accessible via GET requests.
313 #match ':controller(/:action(/:id(.:format)))'