Sha256: 7bad2930f228a533a419f33cd892013197e7241397319535be3db2b4bcc2d538

Contents?: true

Size: 903 Bytes

Versions: 50

Compression:

Stored size: 903 Bytes

Contents

# frozen_string_literal: true

resources :patients, only: [] do
  resources :events, only: [:new, :create, :index], controller: "events/events"
  constraints(format: /(pdf)/) do
    resources :events, only: :show, controller: "events/events"
  end

  resources :swabs,
            only: [:new, :create, :edit, :update],
            controller: "events/swabs",
            defaults: { slug: :swabs }

  resources :investigations,
            only: [:new, :create, :edit, :update],
            controller: "events/investigations",
            defaults: { slug: :investigations }

  # Here we could enable new event by any other slug
  # eg patient_new_specific_event(slug: "transplant_biopsies")
  # get "events/:slug/new",
  #     to: "events/events#new",
  #     as: :new_specific_event
  # or we could hardwire routes as we do for swabs.
end

namespace :events do
  resources :types, except: :show
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
renalware-core-2.0.125 config/routes/events.rb
renalware-core-2.0.124 config/routes/events.rb
renalware-core-2.0.123 config/routes/events.rb
renalware-core-2.0.121 config/routes/events.rb
renalware-core-2.0.120 config/routes/events.rb
renalware-core-2.0.119 config/routes/events.rb
renalware-core-2.0.118 config/routes/events.rb
renalware-core-2.0.117 config/routes/events.rb
renalware-core-2.0.116 config/routes/events.rb
renalware-core-2.0.115 config/routes/events.rb
renalware-core-2.0.113 config/routes/events.rb
renalware-core-2.0.112 config/routes/events.rb
renalware-core-2.0.111 config/routes/events.rb
renalware-core-2.0.110 config/routes/events.rb
renalware-core-2.0.109 config/routes/events.rb
renalware-core-2.0.108 config/routes/events.rb
renalware-core-2.0.106 config/routes/events.rb
renalware-core-2.0.105 config/routes/events.rb
renalware-core-2.0.104 config/routes/events.rb
renalware-core-2.0.103 config/routes/events.rb