OSDN Git Service

t#29077:fix route
authoryasushiito <yas@pen-chan.jp>
Sat, 21 Jul 2012 02:11:08 +0000 (11:11 +0900)
committeryasushiito <yas@pen-chan.jp>
Sat, 21 Jul 2012 02:11:08 +0000 (11:11 +0900)
config/routes.rb

index 353343b..43d500c 100644 (file)
@@ -3,8 +3,6 @@ Pettanr::Application.routes.draw do
   devise_for :users , :controllers => { :registrations => "user_registrations" }
   devise_for :admins
 
-  match 'original_pictures/:id(.:format)/refresh' => 'original_pictures#refresh'
-
   resources :authors do
     collection do
       get :index
@@ -81,13 +79,15 @@ Pettanr::Application.routes.draw do
   resources :resource_pictures do
     collection do
       get :index
-      get :show
       get :new
+      get :show
       post :create
       get :count
       get :list
       get :browse
     end
+    member do
+    end
   end
   resources :original_pictures do
     new do
@@ -107,18 +107,25 @@ Pettanr::Application.routes.draw do
     end
   end
   resources :original_picture_license_groups do
-    collection do
+    new do
       get :new
+    end
+    collection do
       post :create
     end
   end
   resources :standard_licenses do
-    collection do
+    new do
       get :new
+    end
+    collection do
       post :create
     end
   end
   resources :panels do
+    new do
+      get :new
+    end
     collection do
       get :index
       get :show
@@ -137,17 +144,17 @@ Pettanr::Application.routes.draw do
       get :new
     end
     collection do
+      get :show
       post :create
       get :list
       get :browse
     end
     member do
-      get :show
       put :update
       delete :destroy
     end
   end
-  resources :comics do #, except: [:new, :edit]
+  resources :comics do
     new do
       get :new
     end
@@ -229,17 +236,11 @@ Pettanr::Application.routes.draw do
   # Sample of regular route:
   #   match 'products/:id' => 'catalog#view'
   # Keep in mind you can assign values other than :controller and :action
-  match 'comics/:id(.:format)/play' => 'comics#play'
   match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
   match 'home/(:action)', :controller => 'home'
   match 'help/(:action)', :controller => 'help'
   match 'system/(:action)', :controller => 'system'
   match 'authors/(:action(/:id))', :controller => 'authors'
-#  controller 'system' do
-#    get 'start'
-#    get 'index'
-##    match 'start', :to => 'system#start'
-#  end
   
   # Sample of named route:
   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase