Sha256: 6237ed8a57978fc9d954f9ba2300e79478260a008afa68dffcb09cc6ccc12567

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

::Refinery::Application.routes.draw do

  # Add Devise necessary routes.
  # For Devise routes, see: https://github.com/plataformatec/devise
  devise_for :users, :controllers => {
    :sessions => 'sessions',
    :registrations => 'users',
    :passwords => 'passwords'
  }, :path_names => {
    :sign_out => 'logout',
    :sign_in => 'login',
    :sign_up => 'register'
  }

  # 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

12 entries across 12 versions & 1 rubygems

Version Path
refinerycms-authentication-1.0.11 config/routes.rb
refinerycms-authentication-1.0.10 config/routes.rb
refinerycms-authentication-1.0.9 config/routes.rb
refinerycms-authentication-1.0.8 config/routes.rb
refinerycms-authentication-1.0.7 config/routes.rb
refinerycms-authentication-1.0.5 config/routes.rb
refinerycms-authentication-1.0.4 config/routes.rb
refinerycms-authentication-1.0.3 config/routes.rb
refinerycms-authentication-1.0.1 config/routes.rb
refinerycms-authentication-1.0.0 config/routes.rb
refinerycms-authentication-0.9.9.22 config/routes.rb
refinerycms-authentication-0.9.9.21 config/routes.rb