Sha256: 416d630703844db6c331480fa6b2f8d4da9bed24afe4e5e8228321b6bc13cba1
Contents?: true
Size: 1.16 KB
Versions: 20
Compression:
Stored size: 1.16 KB
Contents
::Refinery::Application.routes.draw do # Add Devise necessary routes. # For Devise routes, see: https://github.com/plataformatec/devise #namespace :refinery do devise_for :users, :path => :registrations, :controllers => { :sessions => 'sessions', :registrations => 'registrations', :passwords => 'passwords' }, :path_names => { :sign_out => 'logout', :sign_in => 'login', :sign_up => 'register' } #end # Override Devise's default after login redirection route. This will pushed a logged in user to the dashboard. get 'refinery', :to => 'admin/dashboard#index', :as => :refinery_root get 'refinery', :to => 'admin/dashboard#index', :as => :user_root # Override Devise's other routes for convenience methods. #get 'refinery/login', :to => "sessions#new", :as => :new_user_session #get 'refinery/login', :to => "sessions#new", :as => :refinery_login #get 'refinery/logout', :to => "sessions#destroy", :as => :destroy_user_session #get 'refinery/logout', :to => "sessions#destroy", :as => :logout scope(:path => 'refinery', :as => 'admin', :module => 'admin') do resources :users, :except => :show end end
Version data entries
20 entries across 20 versions & 2 rubygems