Sha256: adbd2ffd547531c8377651498e6783f824d17da77fe1eef4fb3a0b75faf56691

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

CouchBlog::Engine.routes.draw do
  #resources :posts, only: [:index, :show]
  namespace :admin do
    resources :posts
    resources :categories
    get "posts/:id(/:title)" => 'posts#show'
    root to: 'posts#index'
  end

  root to: 'posts#index'
  get "/posts/:id(/:title)" => 'posts#show', as: :post
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couch_blog-0.6.0 config/routes.rb