Sha256: 647fe9ee9fedbe35d0b5c3ddf54eb1658a4037801f81e4b5ad2d168242cae79b

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.resources :pages, :only => [:show, :index], :collection => {:preview => :get}
  map.namespace(:admin) do |admin|
    admin.resources :pages, :has_many => :pages, :collection => {:preview => :post}, :member => {:preview => :put, :feature => [:get, :put], :move_up => :get, :move_down => :get}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beef-pages-0.1.7 config/routes.rb
beef-pages-0.2.2 config/routes.rb
beef-pages-0.2.3 config/routes.rb