Sha256: 0738712a9f9cf5e78644a90a163b7bec298b59720c7f367c7aee34bece85a81a

Contents?: true

Size: 923 Bytes

Versions: 18

Compression:

Stored size: 923 Bytes

Contents

Rails.application.routes.draw do

  devise_for :users, :controllers => { :invitations => 'users/invitations' }

  concern :printing do
    member do
      get 'print'
    end
    collection do
      get 'print'
    end
  end

  # prefer and defer elements (setting preferred true|false)
  concern :preferring do
    member do
      get 'prefer'
      get 'defer'
    end
  end

  # attach and detach the route in question to its 'parent'
  concern :attaching do
    member do
      get 'attach'
      get 'detach'
    end
  end

  # activate and passify the route in question
  concern :activating do
    member do
      get 'activate'
      get 'deactivate'
    end
  end


  scope '/admin' do
    resources :users, concerns: [:activating, :attaching, :printing] do
      member do
        get 'confirm'
      end
      resources :printers, concerns: [:preferring, :activating, :attaching, :printing]
    end
  end



end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
oxen_user-0.4.13 config/routes.rb
oxen_user-0.4.12 config/routes.rb
oxen_user-0.4.11 config/routes.rb
oxen_user-0.4.9 config/routes.rb
oxen_user-0.4.8 config/routes.rb
oxen_user-0.4.7 config/routes.rb
oxen_user-0.4.3 config/routes.rb
oxen_user-0.4.1 config/routes.rb
oxen_user-0.3.4 config/routes.rb
oxen_user-0.3.3 config/routes.rb
oxen_user-0.3.2 config/routes.rb
oxen_user-0.3.1 config/routes.rb
oxen_user-0.3.0 config/routes.rb
oxen_user-0.2.9 config/routes.rb
oxen_user-0.2.8 config/routes.rb
oxen_user-0.2.4 config/routes.rb
oxen_user-0.2.2 config/routes.rb
oxen_user-0.2.1 config/routes.rb