Sha256: 4c88d44d80c53e75410de00b9c60a80c4ca615348b74968211082c62d260d5c3

Contents?: true

Size: 369 Bytes

Versions: 20

Compression:

Stored size: 369 Bytes

Contents

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

Ecrire::Theme::Engine.routes.draw do

  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]

  root 'posts#index'
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ecrire-0.31.2 test/editor/theme/routes.rb
ecrire-0.31.1 test/editor/theme/routes.rb
ecrire-0.31.0 test/editor/theme/routes.rb
ecrire-0.30.3 test/editor/theme/routes.rb
ecrire-0.30.2 test/editor/theme/routes.rb
ecrire-0.30.1 test/editor/theme/routes.rb
ecrire-0.30.0 test/editor/theme/routes.rb
ecrire-0.29.0 test/editor/theme/routes.rb
ecrire-0.28.3 test/editor/theme/routes.rb
ecrire-0.28.2 test/editor/theme/routes.rb
ecrire-0.28.1 test/editor/theme/routes.rb
ecrire-0.28.0 test/editor/theme/routes.rb
ecrire-0.27.0 test/editor/theme/routes.rb
ecrire-0.26.3 test/editor/theme/routes.rb
ecrire-0.26.2 test/editor/theme/routes.rb
ecrire-0.26.1 test/editor/theme/routes.rb
ecrire-0.26.0 test/editor/theme/routes.rb
ecrire-0.25.2 test/editor/theme/routes.rb
ecrire-0.25.1 test/editor/theme/routes.rb
ecrire-0.25.0 test/editor/theme/routes.rb