Sha256: 60a65b32a96364877a35c79d2955d6f482d3fcb0a73ca2f17fb8a198e982aaf3

Contents?: true

Size: 410 Bytes

Versions: 9

Compression:

Stored size: 410 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
      collection do 
        post :sort
      end
    end
    get 'blog' => 'blog#index', as: :blog
    get 'tags/:tag', to: 'blog#index', as: :tag
    resources :contacts
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tkh_content-0.2.1 config/routes.rb
tkh_content-0.2 config/routes.rb
tkh_content-0.1.15 config/routes.rb
tkh_content-0.1.14 config/routes.rb
tkh_content-0.1.13 config/routes.rb
tkh_content-0.1.12 config/routes.rb
tkh_content-0.1.11 config/routes.rb
tkh_content-0.1.10 config/routes.rb
tkh_content-0.1.9.3 config/routes.rb