Sha256: 9fcc81e718a9dac576cdb017e56fb900c76baf4710bc77e2ca4cef75b90f166f
Contents?: true
Size: 600 Bytes
Versions: 8
Compression:
Stored size: 600 Bytes
Contents
Rails.application.routes.draw do match "/admin" => redirect("/admin/dashboard") namespace :admin do resource :dashboard, :only => [:show], :controller => :dashboard if Typus.authentication == :session resource :session, :only => [:new, :create, :destroy], :controller => :session resources :account, :only => [:new, :create, :show, :forgot_password] do collection { get :forgot_password } end end end match ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/ match ':controller(/:action(.:format))', :controller => /admin\/[^\/]+/ end
Version data entries
8 entries across 8 versions & 1 rubygems