Sha256: 9a2ec28940145655f86cf41db9d4372c0c748f1c4c189b21e4475e40009f6f0e

Contents?: true

Size: 603 Bytes

Versions: 5

Compression:

Stored size: 603 Bytes

Contents

ConstructorPages::Engine.routes.draw do
  scope '/admin' do
    resources :pages, except: [:show] do
      get :new_child, on: :member
    end

    resources :templates, except: [:show] do
      resources :fields, except: [:show, :index]
    end  

    %w{page template field}.each do |c|
      %w{up down}.each do |d|
        get "#{c.pluralize}/move/#{d}/:id" => "#{c.pluralize}#move_#{d}", as: "#{c}_move_#{d}"
      end
    end
  end

  root :to => 'pages#show'

  get '*all/search/:what_search' => 'pages#search', format: false
  get '*all.:format' => 'pages#show'
  get '*all' => 'pages#show'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
constructor-pages-0.8.1 config/routes.rb
constructor-pages-0.8.0 config/routes.rb
constructor-pages-0.7.10 config/routes.rb
constructor-pages-0.7.9 config/routes.rb
constructor-pages-0.7.8 config/routes.rb