Sha256: 81fe74dfe480fc467b00af92f5b18a8503d4b5653c593406707b4d00acc713aa

Contents?: true

Size: 1006 Bytes

Versions: 1

Compression:

Stored size: 1006 Bytes

Contents

Spree::Core::Engine.routes.draw do
  resources :questions, :only => [:show], :path => 'faq' do
    collection do
      get '(/page-:page)', :action => :index, :as => ''
      match '/browse/(*id)(/page-:page)', :action => :browse, :as => 'browse'
    end
  end
  
  namespace :admin do
    resources :questions do
      resources :taxons do
        member do
          get :select, :action => :select_for_question
          delete :remove, :action => :remove_for_question
        end
        collection do
          post :available, :action => :available_for_question
          get  :selected, :action => :selected_for_question
        end
      end
      resources :products do
        member do
          get :select, :action => :select_for_question
          delete :remove, :action => :remove_for_question
        end
        collection do
          post :available, :action => :available_for_question
          get  :selected, :action => :selected_for_question
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_grid_faq-0.1.0 config/routes.rb