Sha256: 4fc052290cb98a574f7f0607db27e549461d740c1e5364cedf5b4373cd0e1d87

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 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

  root to: "posts#index"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blogit-0.6.0 config/routes.rb
blogit-0.5.1 config/routes.rb
blogit-0.5.0 config/routes.rb
blogit-0.4.8 config/routes.rb
blogit-0.4.7 config/routes.rb
blogit-0.4.6 config/routes.rb