Sha256: 7d891e212ff4ce95e835a9554bd6d7425e6b45c35f251009b1ced748a7fca073

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

Rails.application.routes.draw do
  scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
    resources :pages do
      member do
        post :publish
        post :unpublish
        post :toggle_for_blog
      end
    end
    get 'blog' => 'blog#index', as: :blog
    get 'tags/:tag', to: 'blog#index', as: :tag
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tkh_content-0.1.8 config/routes.rb
tkh_content-0.1.7 config/routes.rb