Sha256: b2e95d3f9b9847e0446ee13832322c7ede4bb7f322222be1872cb54ff8c4d9ed

Contents?: true

Size: 425 Bytes

Versions: 40

Compression:

Stored size: 425 Bytes

Contents

Ecrire::Theme::Engine.post_path = '/:post.year/:post.month/:post.slug/'

Ecrire::Theme::Engine.routes.draw do
  root 'posts#index'
  
  get '/:year/:month/:id', controller: :posts, action: :show, constraints: { year: /\d+/, month: /\d+/ }, as: "post"
  get '/feed', controller: :posts, action: :index, defaults: { format: :rss }

  resources :posts, only: [:index]

  resources :tags

  get '/:view', to: 'static#show'

end

Version data entries

40 entries across 20 versions & 1 rubygems

Version Path
ecrire-0.31.2 test/theme/theme/routes.rb
ecrire-0.31.2 lib/ecrire/theme/template/routes.rb
ecrire-0.31.1 test/theme/theme/routes.rb
ecrire-0.31.1 lib/ecrire/theme/template/routes.rb
ecrire-0.31.0 lib/ecrire/theme/template/routes.rb
ecrire-0.31.0 test/theme/theme/routes.rb
ecrire-0.30.3 test/theme/theme/routes.rb
ecrire-0.30.3 lib/ecrire/theme/template/routes.rb
ecrire-0.30.2 test/theme/theme/routes.rb
ecrire-0.30.2 lib/ecrire/theme/template/routes.rb
ecrire-0.30.1 test/theme/theme/routes.rb
ecrire-0.30.1 lib/ecrire/theme/template/routes.rb
ecrire-0.30.0 test/theme/theme/routes.rb
ecrire-0.30.0 lib/ecrire/theme/template/routes.rb
ecrire-0.29.0 test/theme/theme/routes.rb
ecrire-0.29.0 lib/ecrire/theme/template/routes.rb
ecrire-0.28.3 test/theme/theme/routes.rb
ecrire-0.28.3 lib/ecrire/theme/template/routes.rb
ecrire-0.28.2 lib/ecrire/theme/template/routes.rb
ecrire-0.28.2 test/theme/theme/routes.rb