Sha256: a1ed44e61322c2d8e262751d4db256deb92c305f0668ebaca7fd1d4eaba69003

Contents?: true

Size: 346 Bytes

Versions: 16

Compression:

Stored size: 346 Bytes

Contents

PagesCms::Engine.routes.draw do

  resources :articles,    only: [:show, :index]

  namespace :admin do
    resources :pages,     except: [:show, :new]
    resources :images
    resources :articles,  except: [:show]
  end

  get '/'             => 'pages#home',          as: 'root'
  get '/:slug'        => 'pages#show',          as: 'page'

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pages_cms-1.0.6 config/routes.rb
pages_cms-1.0.5 config/routes.rb
pages_cms-1.0.4 config/routes.rb
pages_cms-1.0.3 config/routes.rb
pages_cms-1.0.2 config/routes.rb
pages_cms-1.0.1 config/routes.rb
pages_cms-1.0.0 config/routes.rb
pages_cms-0.2.3 config/routes.rb
pages_cms-0.2.2 config/routes.rb
pages_cms-0.2.1 config/routes.rb
pages_cms-0.2.0 config/routes.rb
pages_cms-0.1.1 config/routes.rb
pages_cms-0.1.0 config/routes.rb
pages_cms-0.0.3 config/routes.rb
pages_cms-0.0.2 config/routes.rb
pages_cms-0.0.1 config/routes.rb