Sha256: ce8de4524c78013b8cf06b4c019bfb6221608e321d4dc03916f03489a591d80a

Contents?: true

Size: 491 Bytes

Versions: 15

Compression:

Stored size: 491 Bytes

Contents

ConstructorPages::Engine.routes.draw do
  scope '/admin' do
    resources :pages, except: [:show]
    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', format: /(html|json|xml)/
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
constructor-pages-0.9.1 config/routes.rb
constructor-pages-0.9.0 config/routes.rb
constructor-pages-0.8.19 config/routes.rb
constructor-pages-0.8.18 config/routes.rb
constructor-pages-0.8.17 config/routes.rb
constructor-pages-0.8.16 config/routes.rb
constructor-pages-0.8.15 config/routes.rb
constructor-pages-0.8.14 config/routes.rb
constructor-pages-0.8.13 config/routes.rb
constructor-pages-0.8.12 config/routes.rb
constructor-pages-0.8.11 config/routes.rb
constructor-pages-0.8.10 config/routes.rb
constructor-pages-0.8.8 config/routes.rb
constructor-pages-0.8.7 config/routes.rb
constructor-pages-0.8.6 config/routes.rb