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