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
122 resources :original_picture_license_groups do
147 resources :stories do
179 resources :licenses do
187 resources :license_groups do
195 resources :system_pictures do
209 # The priority is based upon order of creation:
210 # first created -> highest priority.
212 # Sample of regular route:
213 # match 'products/:id' => 'catalog#view'
214 # Keep in mind you can assign values other than :controller and :action
215 match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
216 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
217 match 'home/(:action)', :controller => 'home'
218 match 'system/(:action)', :controller => 'system'
219 match 'authors/(:action(/:id))', :controller => 'authors'
221 # Sample of named route:
222 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
223 # This route can be invoked with purchase_url(:id => product.id)
225 # Sample resource route (maps HTTP verbs to controller actions automatically):
226 # resources :products
228 # Sample resource route with options:
229 # resources :products do
240 # Sample resource route with sub-resources:
241 # resources :products do
242 # resources :comments, :sales
246 # Sample resource route with more complex sub-resources
247 # resources :products do
248 # resources :comments
249 # resources :sales do
250 # get 'recent', :on => :collection
254 # Sample resource route within a namespace:
255 # namespace :admin do
256 # # Directs /admin/products/* to Admin::ProductsController
257 # # (app/controllers/admin/products_controller.rb)
258 # resources :products
261 # You can have the root of your site routed with "root"
262 # just remember to delete public/index.html.
263 root :to => 'comics#top'
265 # See how all your routes lay out with "rake routes"
267 # This is a legacy wild controller route that's not recommended for RESTful applications.
268 # Note: This route will make all actions in every controller accessible via GET requests.
269 #match ':controller(/:action(/:id(.:format)))'