Sha256: a17a4deba798dd25202ea943e43066e16cd5263f98a0acfbfc6fd71c4df2ea06

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 Bytes

Contents

Blogit::Engine.routes.draw do

  # Keep these above the posts resources block
  match "posts/page/:page" => "posts#index"
  match "posts/tagged/:tag" => 'posts#tagged', as: :tagged_blog_posts

  resources :posts do
    resources :comments, only: [:create, :destroy]
  end

  match "/" => "posts#index", as: :blog_root
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blogit-0.8.0 config/routes.rb
blogit-0.7.0 config/routes.rb