Sha256: 608910d24026ac66b801953ab46c63e63a61a7da9df9c3ce9c36b34ac9a354a6

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 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.:format' => 'pages#show'
  get '*all' => 'pages#show'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
constructor-pages-0.8.5 config/routes.rb
constructor-pages-0.8.4 config/routes.rb
constructor-pages-0.8.3 config/routes.rb
constructor-pages-0.8.2 config/routes.rb