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
get :show
+ get :count
post :create
get :list
- get :browse
end
member do
put :update
delete :destroy
+ get :browse
end
end
resources :artists do
collection do
get :index
get :show
+ get :count
post :create
get :list
- get :browse
end
member do
put :update
delete :destroy
+ get :browse
end
end
- resources :speaches do
+ resources :speech_balloon_templates do
collection do
get :index
get :show
get :list
+ end
+ member do
get :browse
+ delete :destroy
+ end
+ end
+ resources :speeches do
+ collection do
+ get :list
end
member do
+ get :browse
end
end
resources :balloons do
collection do
- get :index
- get :show
get :list
+ end
+ member do
get :browse
end
+ end
+ resources :speech_balloons do
+ collection do
+ get :list
+ end
member do
+ get :browse
end
end
- resources :speach_templates do
+ resources :panel_pictures do
collection do
get :index
get :show
get :list
- get :browse
end
member do
+ get :browse
end
end
- resources :balloon_templates do
+ resources :pictures do
collection do
- get :index
get :show
+ get :credit
+ get :md5
get :list
- get :browse
end
member do
+ get :credit
+ get :browse
end
end
- resources :speach_balloons do
+ resources :resource_pictures do
collection do
get :index
+ get :new
get :show
post :create
+ get :count
get :list
- get :browse
end
member do
- put :update
delete :destroy
+ get :credit
+ get :browse
end
end
- resources :panel_pictures do
+ resources :original_pictures do
+ new do
+ get :new
+ end
collection do
get :index
get :show
+ post :create
get :list
- get :browse
end
member do
+ get :edit
+ put :update
+ delete :destroy
+ get :history
+ get :browse
end
end
- resources :resource_pictures do
+ resources :original_picture_license_groups do
+ new do
+ get :new
+ end
+ collection do
+ post :create
+ end
+ end
+ resources :colors do
collection do
get :index
- get :show
get :list
+ end
+ member do
get :browse
end
+ end
+ resources :panel_colors do
+ collection do
+ get :index
+ end
member do
+ get :browse
end
end
- resources :original_pictures do
+ resources :ground_colors do
collection do
get :index
- get :show
- get :new
- post :create
- get :list
+ end
+ member do
get :browse
end
+ end
+ resources :ground_pictures do
+ collection do
+ get :index
+ end
member do
- get :edit
- put :update
- delete :destroy
+ get :browse
end
end
resources :panels do
+ new do
+ get :new
+ end
collection do
get :index
get :show
+ get :count
post :create
get :list
- get :browse
end
member do
put :update
delete :destroy
+ get :browse
end
end
- resources :comics do #, except: [:new, :edit]
+ resources :stories do
+ new do
+ get :new
+ end
collection do
- get :index
get :show
post :create
get :list
- get :browse
end
member do
put :update
delete :destroy
+ get :browse
end
end
- resources :licenses do
+ resources :comics do
+ new do
+ get :new
+ end
collection do
get :index
get :show
+ get :count
+ post :create
get :list
+ end
+ member do
+ get :edit
+ put :update
+ delete :destroy
get :browse
end
end
- resources :original_licenses do
+ resources :licenses do
collection do
get :index
get :show
- get :new
- post :create
get :list
- get :browse
end
member do
- get :edit
- put :update
- delete :destroy
+ get :browse
end
end
- resources :common_licenses do
+ resources :license_groups do
collection do
get :index
get :show
- post :create
get :list
- get :browse
end
member do
- put :update
+ get :browse
delete :destroy
end
end
collection do
get :index
get :show
- post :create
get :list
- get :browse
end
member do
- put :update
+ get :browse
delete :destroy
end
end
# 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