Sha256: c5bc375b64b85178295f0308661a795371e84d66d18f8e1a03d19b6af994acfd

Contents?: true

Size: 676 Bytes

Versions: 16

Compression:

Stored size: 676 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

    resources :contacts

    resources :comments do
      collection do
        get :pending
        get :accepted
        get :blocked
        get :for_feed
      end
      member do
        post :accept
        post :block
      end
    end

    resources :tags

    get 'blog' => 'blog#index', as: :blog
    get 'blog_by_tag/:id', :to => 'blog#by_tag', :as => 'blog_by_tag'

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tkh_content-0.10.3 config/routes.rb
tkh_content-0.10.2 config/routes.rb
tkh_content-0.10.1 config/routes.rb
tkh_content-0.10 config/routes.rb
tkh_content-0.9.20 config/routes.rb
tkh_content-0.9.19 config/routes.rb
tkh_content-0.9.18 config/routes.rb
tkh_content-0.9.17 config/routes.rb
tkh_content-0.9.16 config/routes.rb
tkh_content-0.9.15 config/routes.rb
tkh_content-0.9.14 config/routes.rb
tkh_content-0.9.13 config/routes.rb
tkh_content-0.9.12 config/routes.rb
tkh_content-0.9.11 config/routes.rb
tkh_content-0.9.10 config/routes.rb
tkh_content-0.9.9 config/routes.rb