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