Sha256: f8a882c0c439d6c26fc7882cdc68311a2189bad6efc5fe0131fc6293f1a55b19
Contents?: true
Size: 870 Bytes
Versions: 23
Compression:
Stored size: 870 Bytes
Contents
Rails.application.routes.draw do concern :printing do member do get 'print' get 'slip' 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 :services resources :printables resources :print_jobs, concerns: :printing resources :printers, concerns: [:activating, :attaching, :printing] do resources :users, concerns: :attaching end end end
Version data entries
23 entries across 23 versions & 1 rubygems