Sha256: f6543676d73ea37c3a007b133c376fe657766095aa128d5d1028d30cdd9fd347
Contents?: true
Size: 586 Bytes
Versions: 56
Compression:
Stored size: 586 Bytes
Contents
Cmor::Blog::Engine.routes.draw do localized do scope :cmor_blog_engine do resources :posts, only: [:index, :show] do get 'page/:page', action: :index, on: :collection get ':year/:month/:day', action: :index, on: :collection, constraints: { year: /\d+/, month: /\d+/, day: /\d+/ }, as: :day get ':year/:month', action: :index, on: :collection, constraints: { year: /\d+/, month: /\d+/ }, as: :month get ':year', action: :index, on: :collection, constraints: { year: /\d+/ }, as: :year end root to: 'posts#index' end end end
Version data entries
56 entries across 56 versions & 1 rubygems