Sha256: 113beacb24efd8dce86b6126dc09be073453588a6831cb80cc8d5a68cc993338

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

#map.namespace :admin do |admin|
#  admin.resources :comments
#  admin.resources :comment_types
#
#  admin.resources :orders, :member => {:comments => :get} do |order|
#    order.resources :shipments, :member => {:comments => :get}
#  end
#end
#

Spree::Core::Engine.routes.draw do
  namespace :admin do
    resources :comments
    resources :comment_types

    resources :orders do
      member do
        get :comments
      end

      resources :shipments do
        member do
         get :comments
       end
      end
    end
  end

#match '/admin/comments' => 'admin/comments', :via => [:get, :post]
#  match '/admin/comment_types' => 'admin/comment_types', :via => [:get, :post]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_comments-1.0.1 config/routes.rb