Sha256: 1654f8c728611a91a3c3bac6171ccc8c79e029c9b8330c164ccbdcf330ad3222
Contents?: true
Size: 641 Bytes
Versions: 10
Compression:
Stored size: 641 Bytes
Contents
require 'routing_filter' require 'adva/routing_filters/section_root' require 'adva/routing_filters/section_path' Rails.application.routes.draw do filter :section_path, :section_root namespace :admin do resources :sites do resources :sections, :only => [:index, :new, :create] resources :pages end end match 'pages/:id', :to => 'pages#show', :as => :page match 'pages/:page_id/article', :to => 'articles#show', :as => :page_article resources :installations, :only => [:new, :create, :show] root :to => redirect('/installations/new') # should only match if no root section is present end
Version data entries
10 entries across 10 versions & 1 rubygems