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
92 resources :resource_pictures do
106 resources :original_pictures do
124 resources :original_picture_license_groups do
139 resources :panel_colors do
146 resources :ground_colors do
153 resources :ground_pictures do
177 resources :stories do
210 resources :licenses do
218 resources :license_groups do
226 resources :system_pictures do
240 # The priority is based upon order of creation:
241 # first created -> highest priority.
243 # Sample of regular route:
244 # match 'products/:id' => 'catalog#view'
245 # Keep in mind you can assign values other than :controller and :action
246 match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
247 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
248 match 'stories/comic/:id(.:format)' => 'stories#comic'
249 match 'home/(:action)', :controller => 'home'
250 match 'system/(:action)', :controller => 'system'
251 match 'authors/(:action(/:id))', :controller => 'authors'
253 # Sample of named route:
254 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
255 # This route can be invoked with purchase_url(:id => product.id)
257 # Sample resource route (maps HTTP verbs to controller actions automatically):
258 # resources :products
260 # Sample resource route with options:
261 # resources :products do
272 # Sample resource route with sub-resources:
273 # resources :products do
274 # resources :comments, :sales
278 # Sample resource route with more complex sub-resources
279 # resources :products do
280 # resources :comments
281 # resources :sales do
282 # get 'recent', :on => :collection
286 # Sample resource route within a namespace:
287 # namespace :admin do
288 # # Directs /admin/products/* to Admin::ProductsController
289 # # (app/controllers/admin/products_controller.rb)
290 # resources :products
293 # You can have the root of your site routed with "root"
294 # just remember to delete public/index.html.
295 root :to => 'comics#top'
297 # See how all your routes lay out with "rake routes"
299 # This is a legacy wild controller route that's not recommended for RESTful applications.
300 # Note: This route will make all actions in every controller accessible via GET requests.
301 #match ':controller(/:action(/:id(.:format)))'