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

Version Path
adva-core-0.0.14 config/routes.rb
adva-core-0.0.13 config/routes.rb
adva-core-0.0.9 config/routes.rb
adva-core-0.0.8 config/routes.rb
adva-core-0.0.7 config/routes.rb
adva-core-0.0.6 config/routes.rb
adva-core-0.0.5 config/routes.rb
adva-core-0.0.4 config/routes.rb
adva-core-0.0.2 config/routes.rb
adva-core-0.0.1 config/routes.rb