X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=config%2Froutes.rb;h=ac3e8d8c2d3f22846a48569bde2246f8a32fcbbc;hb=d293932f34471ad6000d3ab4afb8daee52bbc399;hp=298471fe139075bc2d4ebb7b3ecbdd12f7619b4e;hpb=261d481751fff922dcdfc391aa7932d344fb447c;p=pettanr%2Fpettanr.git diff --git a/config/routes.rb b/config/routes.rb index 298471fe..ac3e8d8c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,9 +2,11 @@ Pettanr::Application.routes.draw do devise_for :users , :controllers => { :registrations => "user_registrations" } devise_for :admins - - match 'original_pictures/:id(.:format)/refresh' => 'original_pictures#refresh' - + + Pettanr::Application.licenses.each do |name, klass| + mount Module.const_get(klass)::Engine => "/#{name}" + end + resources :authors do collection do get :index @@ -33,7 +35,7 @@ Pettanr::Application.routes.draw do delete :destroy end end - resources :speach_balloon_templates do + resources :speech_balloon_templates do collection do get :index get :show @@ -44,27 +46,15 @@ Pettanr::Application.routes.draw do delete :destroy end end - resources :speach_templates do - collection do - get :index - get :show - get :list - get :browse - end - member do - end - end - resources :balloon_templates do + resources :speeches do collection do - get :index - get :show get :list get :browse end member do end end - resources :speaches do + resources :balloons do collection do get :list get :browse @@ -72,7 +62,7 @@ Pettanr::Application.routes.draw do member do end end - resources :balloons do + resources :speech_balloons do collection do get :list get :browse @@ -80,40 +70,47 @@ Pettanr::Application.routes.draw do member do end end - resources :speach_balloons do + resources :panel_pictures do collection do + get :index + get :show get :list get :browse end member do end end - resources :panel_pictures do + resources :pictures do collection do - get :index get :show - get :list - get :browse + get :md5 end member do + get :credit end end resources :resource_pictures do collection do get :index + get :new get :show + post :create get :count get :list get :browse end member do + get :credit end end resources :original_pictures do + new do + get :new + end collection do get :index get :show - get :new + get :history post :create get :list get :browse @@ -124,7 +121,46 @@ Pettanr::Application.routes.draw do delete :destroy end end + resources :original_picture_license_groups do + new do + get :new + end + collection do + post :create + end + end + resources :colors do + collection do + get :index + end + member do + end + end + resources :panel_colors do + collection do + get :index + end + member do + end + end + resources :ground_colors do + collection do + get :index + end + member do + end + end + resources :ground_pictures do + collection do + get :index + end + member do + end + end resources :panels do + new do + get :new + end collection do get :index get :show @@ -138,11 +174,12 @@ Pettanr::Application.routes.draw do delete :destroy end end - resources :comics do #, except: [:new, :edit] + resources :stories do + new do + get :new + end collection do - get :index get :show - get :count post :create get :list get :browse @@ -152,40 +189,37 @@ Pettanr::Application.routes.draw do delete :destroy end end - resources :licenses do - collection do - get :index - get :show - get :list - get :browse + resources :comics do + new do + get :new end - end - resources :original_licenses do collection do get :index get :show - get :new + get :count post :create get :list get :browse end member do - get :edit put :update delete :destroy end end - resources :common_licenses do + resources :licenses do collection do get :index get :show - post :import get :list get :browse end - member do - put :update - delete :destroy + end + resources :license_groups do + collection do + get :index + get :show + get :list + get :browse end end resources :system_pictures do @@ -208,17 +242,12 @@ 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 'pictures/:subdir/:id(.:format)/' => 'pictures#show' + match 'stories/comic/:id(.:format)' => 'stories#comic' 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