Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 1st, 2012  |  syntax: None  |  size: 0.81 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PhotoGallery::Application.routes.draw do
  2.  
  3.   resources :collections do
  4.     member do
  5.       get 'scan'
  6.     end
  7.   end
  8.  
  9.   resources :albums do
  10.     member do
  11.       get 'scan'
  12.     end
  13.   end
  14.  
  15.   resources :images
  16.  
  17.   resources :thumbnails do
  18.     member do
  19.       get 'purge'
  20.       get 'displayblob'
  21.     end
  22.   end
  23.  
  24.  
  25.   # The priority is based upon order of creation:
  26.   # first created -> highest priority.
  27.  
  28.   # You can have the root of your site routed with "root"
  29.   # just remember to delete public/index.html.
  30.   root :to => 'collections#index'
  31.  
  32.   # See how all your routes lay out with "rake routes"
  33.  
  34.   # This is a legacy wild controller route that's not recommended for RESTful applications.
  35.   # Note: This route will make all actions in every controller accessible via GET requests.
  36.   # match ':controller(/:action(/:id(.:format)))'
  37. end