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 'home/(:action)', :controller => 'home'
247 match 'system/(:action)', :controller => 'system'
248 match 'authors/(:action(/:id))', :controller => 'authors'
250 # Sample of named route:
251 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
252 # This route can be invoked with purchase_url(:id => product.id)
254 # Sample resource route (maps HTTP verbs to controller actions automatically):
255 # resources :products
257 # Sample resource route with options:
258 # resources :products do
269 # Sample resource route with sub-resources:
270 # resources :products do
271 # resources :comments, :sales
275 # Sample resource route with more complex sub-resources
276 # resources :products do
277 # resources :comments
278 # resources :sales do
279 # get 'recent', :on => :collection
283 # Sample resource route within a namespace:
284 # namespace :admin do
285 # # Directs /admin/products/* to Admin::ProductsController
286 # # (app/controllers/admin/products_controller.rb)
287 # resources :products
290 # You can have the root of your site routed with "root"
291 # just remember to delete public/index.html.
292 root :to => 'comics#top'
294 # See how all your routes lay out with "rake routes"
296 # This is a legacy wild controller route that's not recommended for RESTful applications.
297 # Note: This route will make all actions in every controller accessible via GET requests.
298 #match ':controller(/:action(/:id(.:format)))'