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