OSDN Git Service

t#31671:add elm copy
[pettanr/pettanr.git] / config / routes.rb
index 1f452aa..398a9c0 100644 (file)
@@ -7,6 +7,9 @@ Pettanr::Application.routes.draw do
   Pettanr::Application.licenses.each do |name, klass|
     mount Module.const_get(klass)::Engine => "/#{name}"
   end
+  Pettanr::Application.speech_balloons.each do |klass , name|
+    mount Module.const_get(klass)::Engine => "/#{name}"
+  end
   
   resources :authors do
     new do
@@ -125,12 +128,19 @@ Pettanr::Application.routes.draw do
     end
   end
   resources :speech_balloons do
+    new do
+      get :new
+    end
     collection do
       get :index
       get :show
+      post :create
       get :list
     end
     member do
+      get :edit
+      put :update
+      delete :destroy
       get :browse
     end
   end