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

Version Path
refinerycms-authentication-0.9.9.20 config/routes.rb
refinerycms-authentication-0.9.9.19 config/routes.rb
refinerycms-authentication-0.9.9.18 config/routes.rb
refinerycms-authentication-0.9.9.17 config/routes.rb
refinerycms-authentication-0.9.9.16 config/routes.rb
refinerycms-authentication-0.9.9.15 config/routes.rb
refinerycms-authentication-0.9.9.14 config/routes.rb
refinerycms-authentication-0.9.9.13 config/routes.rb
refinerycms-authentication-0.9.9.12 config/routes.rb
refinerycms-authentication-0.9.9.11 config/routes.rb
refinerycms-authentication-0.9.9.10 config/routes.rb
refinerycms-authentication-0.9.9.9 config/routes.rb
refinerycms-authentication-0.9.9.8 config/routes.rb
refinerycms-authentication-0.9.9.7 config/routes.rb
refinerycms-authentication-0.9.9.5 config/routes.rb
refinerycms-authentication-0.9.9.4 config/routes.rb
refinerycms-authentication-0.9.9.3 config/routes.rb
refinerycms-authentication-0.9.9.2 config/routes.rb
refinerycms-authentication-0.9.9.1 config/routes.rb
refinerycms-0.9.9 authentication/config/routes.rb