devise_for :admins
devise_for :demand_users
- Pettanr::Application.licenses.each do |name, klass|
- mount Module.const_get(klass)::Engine => "/#{name}"
+ Manifest.manifest.system_resources.engine_resources.each do |engine_resource_name, engine_resource|
+ if engine_resource.add_route?
+ engine_resource.resource_items.each do |klass, name|
+ mount Module.const_get(klass)::Engine => "/#{name}"
+ end
+ end
end
- resources :authors do
+ resources :scrolls do
new do
get :new
end
get :show
get :count
post :create
- get :list
end
member do
+ get :scroll_panels
+ get :panels
+ get :by_author
+ get :by_panel
+ get :scroll_panels_count
+ get :panels_count
+ get :count_by_author
+ get :count_by_panel
+ get :play
+ get :edit
put :update
delete :destroy
get :browse
end
end
- resources :artists do
+ resources :scroll_panels do
new do
get :new
end
collection do
get :index
get :show
- get :count
post :create
- get :list
end
member do
+ get :by_panel
+ get :by_scroll
+ get :count_by_panel
+ get :count_by_scroll
+ get :edit
put :update
delete :destroy
- get :browse
end
end
- resources :speech_balloon_templates do
+ resources :comics do
+ new do
+ get :new
+ end
collection do
get :index
get :show
- get :list
+ get :count
+ post :create
end
member do
- get :browse
+ get :stories
+ get :by_author
+ get :by_me
+ get :stories_count
+ get :count_by_author
+ get :count_by_me
+ get :play
+ get :edit
+ put :update
delete :destroy
end
end
- resources :speeches do
+ resources :stories do
+ new do
+ get :new
+ end
collection do
get :index
get :show
- get :list
+ post :create
end
member do
- get :browse
+ get :story_sheets
+ get :sheets
+ get :by_comic
+ get :by_sheet
+ get :by_author
+ get :story_sheets_count
+ get :sheets_count
+ get :count_by_comic
+ get :count_by_sheet
+ get :count_by_author
+ get :play
+ get :edit
+ put :update
+ delete :destroy
end
end
- resources :balloons do
+ resources :story_sheets do
+ new do
+ get :new
+ end
collection do
get :index
get :show
- get :list
+ post :create
end
member do
- get :browse
+ get :by_story
+ get :by_sheet
+ get :count_by_story
+ get :count_by_sheet
+ get :edit
+ put :update
+ delete :destroy
end
end
- resources :speech_balloons do
+ resources :sheets do
+ new do
+ get :new
+ end
collection do
get :index
get :show
- get :list
+ get :count
+ post :create
end
member do
- get :browse
+ get :story_sheets
+ get :stories
+ get :sheet_panels
+ get :panels
+ get :by_story
+ get :by_panel
+ get :by_author
+ get :story_sheets_count
+ get :stories_count
+ get :sheet_panels_count
+ get :panels_count
+ get :count_by_story
+ get :count_by_panel
+ get :count_by_author
+ get :play
+ get :edit
+ put :update
+ delete :destroy
end
end
- resources :panel_pictures do
+ resources :sheet_panels do
+ new do
+ get :new
+ end
collection do
get :index
get :show
- get :list
+ post :create
end
member do
- get :browse
+ get :by_sheet
+ get :by_panel
+ get :count_by_sheet
+ get :count_by_panel
+ get :edit
+ put :update
+ delete :destroy
end
end
- resources :pictures do
- collection do
- get :show
- get :credit
- get :md5
- get :list
- end
- member do
- get :credit
- get :browse
+ resources :panels do
+ new do
+ get :new
end
- end
- resources :resource_pictures do
collection do
get :index
get :show
- get :new
- post :create
get :count
- get :list
+ post :create
end
member do
+ get :scroll_panels
+ get :scrolls
+ get :sheet_panels
+ get :sheets
+ get :panel_pictures
+ get :speech_balloons
+ get :ground_pictures
+ get :ground_colors
+ get :by_scroll
+ get :by_sheet
+ get :by_author
+ get :scroll_panels_count
+ get :scrolls_count
+ get :sheet_panels_count
+ get :sheets_count
+ get :panel_pictures_count
+ get :speech_balloons_count
+ get :ground_pictures_count
+ get :ground_colors_count
+ get :count_by_scroll
+ get :count_by_sheet
+ get :count_by_author
+ get :catch
+ get :edit
+ put :update
delete :destroy
- get :credit
- get :browse
end
end
- resources :original_pictures do
+ resources :panel_pictures do
new do
get :new
end
get :index
get :show
post :create
- get :list
end
member do
+ get :by_panel
+ get :by_author
+ get :count_by_panel
+ get :count_by_author
get :edit
put :update
delete :destroy
- get :history
- get :browse
end
end
- resources :original_picture_license_groups do
+ resources :speech_balloons do
new do
get :new
end
collection do
- post :create
- end
- end
- resources :colors do
- collection do
get :index
get :show
- get :list
+ post :create
end
member do
- get :browse
+ get :by_panel
+ get :by_author
+ #get :by_speech_balloon_template
+ get :count_by_panel
+ get :count_by_author
+ get :edit
+ put :update
+ delete :destroy
end
end
- resources :panel_colors do
+ resources :balloons do
collection do
get :index
get :show
end
member do
- get :browse
+ get :by_speech_balloon
+ #get :by_system_picture
+ get :count_by_speech_balloon
end
end
- resources :ground_colors do
+ resources :speeches do
collection do
get :index
get :show
end
member do
- get :browse
+ get :by_speech_balloon
+ get :by_writing_format
+ get :count_by_speech_balloon
+ get :count_by_writing_format
end
end
resources :ground_pictures do
+ new do
+ get :new
+ end
collection do
get :index
get :show
end
member do
- get :browse
+ get :by_panel
+ get :by_author
+ get :count_by_panel
+ get :count_by_author
+ get :edit
+ put :update
+ delete :destroy
end
end
- resources :panels do
+ resources :ground_colors do
new do
get :new
end
collection do
get :index
get :show
- get :count
- post :create
- get :list
end
member do
+ get :by_panel
+ get :by_author
+ get :count_by_panel
+ get :count_by_author
+ get :edit
put :update
delete :destroy
- get :browse
end
end
- resources :stories do
+ resources :original_pictures do
new do
get :new
end
get :index
get :show
post :create
- get :list
end
member do
+ get :edit
put :update
delete :destroy
+ get :history
+ end
+ end
+ resources :pictures do
+ collection do
+ get :show
+ get :credit
+ get :search
+ get :list
+ end
+ member do
+ get :credit
get :browse
end
end
- resources :comics do
- new do
+ resources :resource_pictures do
+ collection do
+ get :index
+ get :show
get :new
+ post :create
+ get :count
+ end
+ member do
+ get :by_license
+ get :by_license_group
+ get :by_artist
+ get :count_by_license
+ get :count_by_license_group
+ get :count_by_artist
+ delete :destroy
+ get :credit
end
+ end
+ resources :speech_balloon_templates do
collection do
get :index
get :show
- get :count
- post :create
- get :list
end
member do
- get :edit
- put :update
+ get :speech_balloons
+ get :panels
+ get :by_system_picture
+ get :speech_balloons_count
+ get :panels_count
+ get :count_by_system_picture
delete :destroy
- get :browse
end
end
- resources :licenses do
+ resources :writing_formats do
collection do
get :index
get :show
- get :list
end
member do
- get :browse
+ get :speeches
+ get :by_system_picture
+ get :speeches_count
+ get :count_by_system_picture
end
end
resources :license_groups do
collection do
get :index
get :show
- get :list
end
member do
- get :browse
+ get :licenses
+ get :licenses_count
+ delete :destroy
+ end
+ end
+ resources :licenses do
+ collection do
+ get :index
+ get :show
+ get :search
+ end
+ member do
+ get :resource_pictures
+ get :by_license_group
+ get :by_system_picture
+ get :resource_pictures_count
+ get :count_by_license_group
+ get :count_by_system_picture
+ end
+ end
+ resources :authors do
+ new do
+ get :new
+ end
+ collection do
+ get :index
+ get :show
+ get :count
+ post :create
+ end
+ member do
+ get :scrolls
+ get :scroll_panels
+ get :comics
+ get :stories
+ get :story_sheets
+ get :sheets
+ get :sheet_panels
+ get :panels
+ get :panel_pictures
+ get :speech_balloons
+ get :ground_pictures
+ get :ground_colors
+ get :scrolls_count
+ get :scroll_panels_count
+ get :comics_count
+ get :stories_count
+ get :story_sheets_count
+ get :sheets_count
+ get :sheet_panels_count
+ get :panels_count
+ get :panel_pictures_count
+ get :speech_balloons_count
+ get :ground_pictures_count
+ get :ground_colors_count
+ get :edit
+ put :update
+ delete :destroy
+ end
+ end
+ resources :artists do
+ new do
+ get :new
+ end
+ collection do
+ get :index
+ get :show
+ get :count
+ post :create
+ end
+ member do
+ get :resource_pictures
+ get :resource_pictures_count
+ get :edit
+ put :update
delete :destroy
end
end
collection do
get :index
get :show
- get :list
end
member do
- get :browse
+ #get :balloons
+ get :speech_balloon_templates
+ get :licenses
+ get :speech_balloon_templates_count
+ get :licenses_count
delete :destroy
end
end
+ resources :original_picture_license_groups do
+ new do
+ post :new
+ end
+ collection do
+ post :create
+ end
+ end
resources :provider_sources do
collection do
get :index
get :edit
put :update
delete :destroy
+ post :licenses_import
+ post :artists_import
+ post :original_pictures_import
+ post :import
end
end
resources :demanders do
get :list
get :browse
post :req
+ get :licenses_export
+ get :artists_export
+ get :original_pictures_export
+ get :pictures_export
+ get :export
end
member do
get :edit
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
- match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
+ match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
- match 'stories/comic/:id(.:format)' => 'stories#comic'
+ #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
+ 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