Sha256: b31e1f9ee07355836261504fc7037fc7a813645c2b2aa8365a7cac8c027c4106
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
Grandstand::Application.routes.draw do |map| resources :galleries, :only => [:index, :show] match ':year/:month/:id', :to => 'posts#show', :as => 'post', :constraints => {:year => /\d\d\d\d/, :month => /\d{1,2}/} namespace :admin do resource :session do member do get :forgot post :reset end end root :to => 'main#index' get 'expand', :to => 'main#expand' resources :galleries do collection do post :reorder end member do get :delete end resources :images, :except => [:show] do collection do post :reorder get :upload end member do get :delete end end end resources :pages do member do get :delete end end resources :posts do member do get :delete end end resources :templates resources :users do member do get :delete end end end match '*url', :to => 'pages#show', :as => 'page' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
grandstand-0.2.4 | lib/grandstand/routes.rb |
grandstand-0.2.3 | lib/grandstand/routes.rb |
grandstand-0.2.2 | lib/grandstand/routes.rb |
grandstand-0.2.1 | lib/grandstand/routes.rb |