OSDN Git Service

fix manifest
[pettanr/pettanr.git] / config / routes.rb
index 6d9c7f7..63f9e7e 100644 (file)
@@ -40,12 +40,8 @@ Pettanr::Application.routes.draw do
       post :create
     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
@@ -62,13 +58,16 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
       get :by_panel
       get :by_scroll
+      get :by_author
       get :count_by_panel
       get :count_by_scroll
+      get :count_by_author
       get :edit
       put :update
       delete :destroy
@@ -85,18 +84,38 @@ Pettanr::Application.routes.draw do
       post :create
     end
     member do
-      get :stories
       get :by_author
-      get :by_me
-      get :stories_count
+      get :by_story
       get :count_by_author
-      get :count_by_me
+      get :count_by_story
       get :play
       get :edit
       put :update
       delete :destroy
     end
   end
+  resources :comic_stories do
+    new do
+      get :new
+    end
+    collection do
+      get :index
+      get :show
+      get :count
+      post :create
+    end
+    member do
+      get :by_comic
+      get :by_story
+      get :by_author
+      get :count_by_comic
+      get :count_by_story
+      get :count_by_author
+      get :edit
+      put :update
+      delete :destroy
+    end
+  end
   resources :stories do
     new do
       get :new
@@ -104,16 +123,13 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
-      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
@@ -130,13 +146,16 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
       get :by_story
       get :by_sheet
+      get :by_author
       get :count_by_story
       get :count_by_sheet
+      get :count_by_author
       get :edit
       put :update
       delete :destroy
@@ -180,13 +199,16 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
       get :by_sheet
       get :by_panel
+      get :by_author
       get :count_by_sheet
       get :count_by_panel
+      get :count_by_author
       get :edit
       put :update
       delete :destroy
@@ -203,28 +225,14 @@ Pettanr::Application.routes.draw do
       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 :by_speech_balloon_template
       get :count_by_scroll
       get :count_by_sheet
       get :count_by_author
+      get :count_by_speech_balloon_template
       get :catch
       get :edit
       put :update
@@ -238,6 +246,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
@@ -257,14 +266,16 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
       get :by_panel
       get :by_author
-      #get :by_speech_balloon_template
+      get :by_speech_balloon_template
       get :count_by_panel
       get :count_by_author
+      get :count_by_speech_balloon_template
       get :edit
       put :update
       delete :destroy
@@ -274,6 +285,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       get :by_speech_balloon
@@ -287,6 +299,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       get :by_speech_balloon
@@ -304,6 +317,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       get :by_panel
@@ -322,6 +336,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       get :by_panel
@@ -340,6 +355,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       post :create
     end
     member do
@@ -353,6 +369,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       get :credit
       get :search
       get :list
@@ -366,6 +383,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       get :new
       post :create
       get :count
@@ -385,14 +403,13 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
-      get :speech_balloons
-      get :panels
+      get :by_panel
       get :by_system_picture
-      get :speech_balloons_count
-      get :panels_count
       get :count_by_system_picture
+      get :count_by_panel
       delete :destroy
     end
   end
@@ -400,6 +417,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       get :speeches
@@ -412,6 +430,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       get :licenses
@@ -423,6 +442,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
       get :search
     end
     member do
@@ -445,30 +465,6 @@ Pettanr::Application.routes.draw do
       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
@@ -485,8 +481,6 @@ Pettanr::Application.routes.draw do
       post :create
     end
     member do
-      get :resource_pictures
-      get :resource_pictures_count
       get :edit
       put :update
       delete :destroy
@@ -496,6 +490,7 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :count
     end
     member do
       #get :balloons