Sha256: a9b0c5b91d5a41d6ab869efe59ba5d80300d425673cc193e91361fe2a906c01d

Contents?: true

Size: 523 Bytes

Versions: 14

Compression:

Stored size: 523 Bytes

Contents

Kuhsaft::Engine.routes.draw do
  namespace :cms do
    resources :pages, :except => :show do
      post :sort, :on => :collection
    end
    resources :bricks, :except => [:new, :edit, :index] do
      post :sort, :on => :collection
    end

    resources :assets
    root :to => 'pages#index'
  end

  scope ":locale", :locale => /#{I18n.available_locales.join('|')}/ do
    resources :pages,
      :only => [:index],
      :defaults => { :locale => I18n.locale }
    get '(*url)' => 'pages#show', :as => :page
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 config/routes.rb
kuhsaft-2.2.5 config/routes.rb
kuhsaft-2.2.4 config/routes.rb
kuhsaft-2.2.3 config/routes.rb
kuhsaft-2.2.2 config/routes.rb
kuhsaft-2.2.1 config/routes.rb
kuhsaft-2.2.0 config/routes.rb
kuhsaft-2.1.2 config/routes.rb
kuhsaft-2.1.1 config/routes.rb
kuhsaft-2.1.0 config/routes.rb
kuhsaft-2.0.3 config/routes.rb
kuhsaft-2.0.2 config/routes.rb
kuhsaft-2.0.1 config/routes.rb
kuhsaft-2.0.0 config/routes.rb