Sha256: 4f01c775910efdf501a121e3ab925868d2be7bfbb1cbd9cf1ebc1134d0a41fac

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

Rails.application.routes.draw do
  authenticate :user, lambda {|u| u.role.try(:name) == 'Administrator' } do
    mount Resque::Server.new, :at => "/resque", :as => :resque
  end

  resources :profiles

  resources :user_export_files

  resources :user_import_results, :only => [:index, :show, :destroy]

  resources :user_import_files do
    resources :user_import_results, :only => [:index, :show, :destroy]
  end

  resource :my_account

  resources :roles, :except => [:new, :create, :destroy]

  resources :user_groups

  resources :accepts

  resources :baskets do
    resources :accepts, :except => [:edit, :update]
  end

  as :user do
    get 'users/edit' => 'devise/registrations#edit', as: 'edit_user_registration'
    put 'users' => 'devise/registrations#update', as: 'user_registration'
  end

  root :to => "page#index"

  get '/page/about' => 'page#about'
  get '/page/configuration' => 'page#configuration'
  get '/page/advanced_search' => 'page#advanced_search'
  get '/page/add_on' => 'page#add_on'
  get '/page/export' => 'page#export'
  get '/page/import' => 'page#import'
  get '/page/msie_accelerator' => 'page#msie_accelerator'
  get '/page/opensearch' => 'page#opensearch'
  get '/page/statistics' => 'page#statistics'
  get '/page/system_information' => 'page#system_information'
  get '/page/routing_error' => 'page#routing_error'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_leaf-1.1.1 config/routes.rb
enju_leaf-1.1.0 config/routes.rb
enju_leaf-1.1.0.rc22 config/routes.rb
enju_leaf-1.1.0.rc21 config/routes.rb
enju_leaf-1.1.0.rc20 config/routes.rb
enju_leaf-1.1.0.rc19 config/routes.rb