Pettanr::Application.licenses.each do |name, klass|
mount Module.const_get(klass)::Engine => "/#{name}"
end
+ Pettanr::Application.speech_balloons.each do |klass , name|
+ mount Module.const_get(klass)::Engine => "/#{name}"
+ end
resources :authors do
new do
get :list
end
member do
+ get :edit
put :update
delete :destroy
get :browse
get :stories
get :panels
get :panel_pictures
+ get :speech_balloons
get :ground_pictures
get :ground_colors
- get :panel_colors
end
end
resources :artists do
get :list
end
member do
+ get :edit
put :update
delete :destroy
get :browse
get :list
end
member do
+ get :edit
get :comic
put :update
delete :destroy
get :list
end
member do
+ get :catch
+ get :edit
put :update
delete :destroy
get :browse
end
end
resources :panel_pictures do
+ new do
+ get :new
+ end
collection do
get :index
get :show
+ post :create
get :list
end
member do
+ get :edit
+ put :update
+ delete :destroy
get :browse
end
end
resources :speech_balloons do
+ new do
+ get :new
+ end
collection do
get :index
get :show
+ post :create
get :list
end
member do
+ get :edit
+ put :update
+ delete :destroy
get :browse
end
end
get :browse
end
end
- resources :panel_colors do
- collection do
- get :index
- get :show
- end
- member do
- get :browse
- end
- end
resources :ground_colors do
+ new do
+ get :new
+ end
collection do
get :index
get :show
end
member do
+ get :edit
+ put :update
+ delete :destroy
get :browse
end
end
resources :ground_pictures do
+ new do
+ get :new
+ end
collection do
get :index
get :show
end
member do
+ get :edit
+ put :update
+ delete :destroy
get :browse
end
end
post :create
end
end
- resources :colors do
- collection do
- get :index
- get :show
- get :list
- end
- member do
- get :browse
- end
- end
resources :system_pictures do
collection do
get :index
# Keep in mind you can assign values other than :controller and :action
match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
- match 'stories/comic/:id(.:format)' => 'stories#comic'
+ #match 'stories/comic/:id(.:format)' => 'stories#comic'
+ match 'top/(:action)', :controller => 'top'
match 'home/(:action)', :controller => 'home'
match 'system/(:action)', :controller => 'system'
- match 'authors/(:action(/:id))', :controller => 'authors'
+ #match 'authors/(:action(/:id))', :controller => 'authors'
# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
- root :to => 'comics#top'
+ root :to => 'top#index'
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
- #match ':controller(/:action(/:id(.:format)))'
+ match ':controller(/:action(/:id(.:format)))'
end