OSDN Git Service

t#28985:add credit
[pettanr/pettanr.git] / config / routes.rb
index 43d500c..e2e60d6 100644 (file)
@@ -76,6 +76,14 @@ Pettanr::Application.routes.draw do
     member do
     end
   end
+  resources :pictures do
+    collection do
+      get :show
+    end
+    member do
+      get :credit
+    end
+  end
   resources :resource_pictures do
     collection do
       get :index
@@ -87,6 +95,7 @@ Pettanr::Application.routes.draw do
       get :browse
     end
     member do
+      get :credit
     end
   end
   resources :original_pictures do
@@ -237,6 +246,7 @@ Pettanr::Application.routes.draw do
   #   match 'products/:id' => 'catalog#view'
   # Keep in mind you can assign values other than :controller and :action
   match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
+  match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
   match 'home/(:action)', :controller => 'home'
   match 'help/(:action)', :controller => 'help'
   match 'system/(:action)', :controller => 'system'