Sha256: ea632cece8a984896bba68314687ef3e7b03a1a4607df0570f643ba3c51f9849
Contents?: true
Size: 738 Bytes
Versions: 12
Compression:
Stored size: 738 Bytes
Contents
# frozen_string_literal: true Rails.application.routes.draw do mount EffectiveClassifieds::Engine => '/', as: 'effective_classifieds' end EffectiveClassifieds::Engine.routes.draw do # Public routes scope module: 'effective' do resources :classifieds, only: [:index, :show, :edit, :update] resources :jobs, only: [:index, :show, :edit, :update], controller: 'classifieds' resources :classified_wizards, only: [:new, :show, :destroy] do resources :build, controller: :classified_wizards, only: [:show, :update] end end namespace :admin do resources :classifieds, except: [:show] do post :approve, on: :member end resources :jobs, except: [:show], controller: 'classifieds' end end
Version data entries
12 entries across 12 versions & 1 rubygems