Sha256: de50416d44d12c0dafc13823d6af899775f450d4e9c29666e337800c910a6e0a

Contents?: true

Size: 329 Bytes

Versions: 11

Compression:

Stored size: 329 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, :move_up => :get, :move_down => :get}
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
beef-pages-0.2.4 config/routes.rb
beef-pages-0.2.5 config/routes.rb
beef-pages-0.2.6 config/routes.rb
beef-pages-0.3.0 config/routes.rb
beef-pages-0.3.1 config/routes.rb
beef-pages-0.3.2 config/routes.rb
beef-pages-0.3.3 config/routes.rb
beef-pages-0.3.4 config/routes.rb
beef-pages-0.3.5 config/routes.rb
beef-pages-0.3.7 config/routes.rb
beef-pages-0.3.6 config/routes.rb