OSDN Git Service

fix picture index action
[pettanr/pettanr.git] / config / routes.rb
index ebb2dd0..ad38cda 100644 (file)
@@ -334,6 +334,7 @@ Pettanr::Application.routes.draw do
   end
   resources :pictures do
     collection do
+      get :index
       get :show
       get :credit
       get :search
@@ -579,7 +580,7 @@ Pettanr::Application.routes.draw do
   
   # resource_pictures/1.png?subdir=full
   # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
-  match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
+  match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
   #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
   match 'top/(:action)', :controller => 'top'
   match 'home/(:action)', :controller => 'home'