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