Sha256: cde440f0e63a98be472c8fa02357ea8437772227bb879756b663518f33b2188a

Contents?: true

Size: 1.55 KB

Versions: 17

Compression:

Stored size: 1.55 KB

Contents

Rails.application.routes.draw do
  mount EffectiveCpd::Engine => '/', as: 'effective_cpd'
end

EffectiveCpd::Engine.routes.draw do
  scope module: 'effective' do
    # Statements wizard
    resources :cpd_cycles, path: "cpd_#{EffectiveCpd.cycle_label.pluralize.parameterize.underscore}", only: [:show] do
      resources :cpd_statements, path: :statements, only: [:new, :show] do
        resources :build, controller: :cpd_statements, only: [:show, :update]
      end
    end

    # CRUD StatementActivities
    resources :cpd_statements, only: [] do
      resources :cpd_statement_activities, except: [:index, :show]
    end

    # Audits Auditee wizard
    resources :cpd_audits, only: [:new, :show] do
      resources :build, controller: :cpd_audits, only: [:show, :update]
    end

    # Audits Auditor / Audit Reviewer wizard
    resources :cpd_audit_reviews, only: [:new, :show] do
      resources :build, controller: :cpd_audit_reviews, only: [:show, :update]
    end
  end

  namespace :admin do
    resources :cpd_categories, except: [:show]
    resources :cpd_activities, except: [:show]
    resources :cpd_statement_activities, only: [:index, :show]
    resources :cpd_cycles, except: [:show]
    resources :cpd_rules, only: [:index]
    resources :cpd_special_rules, except: [:show]

    resources :cpd_statements, only: [:index, :show] do
      post :unsubmit, on: :member
    end

    resources :cpd_audit_levels, except: [:show]
    resources :cpd_audit_level_questions, except: [:show]

    resources :cpd_audits, except: [:show]
    resources :cpd_audit_reviews
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_cpd-0.6.9 config/routes.rb
effective_cpd-1.1.0 config/routes.rb
effective_cpd-1.0.0 config/routes.rb
effective_cpd-0.6.8 config/routes.rb
effective_cpd-0.6.7 config/routes.rb
effective_cpd-0.6.6 config/routes.rb
effective_cpd-0.6.5 config/routes.rb
effective_cpd-0.6.4 config/routes.rb
effective_cpd-0.6.3 config/routes.rb
effective_cpd-0.6.2 config/routes.rb
effective_cpd-0.6.1 config/routes.rb
effective_cpd-0.6.0 config/routes.rb
effective_cpd-0.5.4 config/routes.rb
effective_cpd-0.5.3 config/routes.rb
effective_cpd-0.5.2 config/routes.rb
effective_cpd-0.5.1 config/routes.rb
effective_cpd-0.5.0 config/routes.rb