Sha256: 1698d5f539c19a0b9cb7b878f4eee00e8b33e17b0f7366d324484f145b7080de
Contents?: true
Size: 669 Bytes
Versions: 6
Compression:
Stored size: 669 Bytes
Contents
include Adminpanel::RouterHelper Adminpanel::Engine.routes.draw do adminpanel_resources.each do |file| if file resources file.to_sym end end resources :sections, :except => [:new, :create, :destroy] match '/signout', :to => 'sessions#destroy', :via => :delete, :as => "signout" match '/signin', :to => 'sessions#new', :as => "signin" resources :users resources :galleries do member do put :move_better, :as => "move_to_better" put :move_worst, :as => "move_to_worst" end end resources :sessions, :only => [:new, :create, :destroy] root :to => 'pages#index' end
Version data entries
6 entries across 6 versions & 1 rubygems