From e093a769dad9ecc098b59671f99830bfa86533af Mon Sep 17 00:00:00 2001 From: yasushiito Date: Sat, 21 Jul 2012 11:11:08 +0900 Subject: [PATCH] t#29077:fix route --- config/routes.rb | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 353343b2..43d500c1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 -- 2.11.0