Sha256: d863fc57c4746903ae88ec1c8819ca7e986526214ed88e7226bd54744e6d7b87

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

Rails.application.routes.draw do |map|
  
  match "/:year/:month/:day/:id" => "posts#show", :constraints => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ }
  match "/:year(/:month(/:day))" => "posts#index", :constraints => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ }
  match "/tag/:id" => 'posts#tag'
  resources :posts
  
  root :to => "posts#index"
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
santey_blog-0.1.2 config/routes.rb