Sha256: 591c03f4a93bb2ee35e12c9404e2baccc368883547963531156849396167615e

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

Adminpanel::Engine.routes.draw do
  	resources :sections, :except => [:new]
    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]
    resources :products
    resources :categories
    root :to => 'products#index'
    match '/signout', :to => 'sessions#destroy', :via => :delete, :as => "signout"
    match '/signin', :to => 'sessions#new', :as => "signin"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adminpanel-0.1.1 config/routes.rb