Sha256: e95f34262288278f75e907bb9873401ecca39b9e8295aafbefa154c8bfffc905

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

Rails.application.routes.draw do
  mount Ckeditor::Engine => '/ckeditor'

  resources :forms, :only => [] do
    member do
      post :download
      post :deliver
    end
  end

  resources :form_answers, :only => [:create, :index]

  scope ":locale", :locale => /\w{2}/ do
    scope "search" do
      resources :searches, path: '', only: [:show]
    end
    # TODO refactor
    match ':slug5(/:slug4(/:slug3(/:slug2(/:slug1))))'  => 'pages#show'
    resources :pages, path: '', only: [:show, :index]
  end

  match ':locale' => 'pages#show'

  root to: 'pages#show'

  resources :locales, only: :show
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.46 config/routes.rb