Sha256: 8997f708bef5b45b21ade63923f123e230a8371368d2672801d9b66431b29569

Contents?: true

Size: 279 Bytes

Versions: 6

Compression:

Stored size: 279 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
    match 'blog' => 'blog#index'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tkh_content-0.1.6 config/routes.rb
tkh_content-0.1.5 config/routes.rb
tkh_content-0.1.4 config/routes.rb
tkh_content-0.1.3 config/routes.rb
tkh_content-0.1.2 config/routes.rb
tkh_content-0.1.1 config/routes.rb